search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

add platform badge to search results in frontend

shows platform badge (e.g., "pckt", "offprint") for non-leaflet results

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

zzstoatzz 79da934f d7572926

+13 -1
+13 -1
site/index.html
··· 157 157 color: #6a9fd4; 158 158 } 159 159 160 + .platform-badge { 161 + font-size: 10px; 162 + padding: 2px 6px; 163 + border-radius: 3px; 164 + margin-right: 8px; 165 + text-transform: lowercase; 166 + background: rgba(180, 100, 64, 0.2); 167 + color: #d4956a; 168 + } 169 + 160 170 .status { 161 171 padding: 1rem; 162 172 text-align: center; ··· 433 443 } 434 444 435 445 const date = doc.createdAt ? new Date(doc.createdAt).toLocaleDateString() : ''; 446 + const platform = doc.platform || 'leaflet'; 447 + const platformBadge = platform !== 'leaflet' ? `<span class="platform-badge">${escapeHtml(platform)}</span>` : ''; 436 448 html += ` 437 449 <div class="result"> 438 450 <div class="result-title"> 439 - <span class="entity-type ${entityType}">${entityType}</span> 451 + <span class="entity-type ${entityType}">${entityType}</span>${platformBadge} 440 452 ${leafletUrl 441 453 ? `<a href="${leafletUrl}" target="_blank">${escapeHtml(doc.title || 'Untitled')}</a>` 442 454 : escapeHtml(doc.title || 'Untitled')}