# SEO Implementation Examples This document shows concrete examples of how the SEO meta tags appear on different pages of zelo.news. ## Example 1: Article Page When viewing an article titled "The Future of Decentralized Social Media" by Alice: ### What Gets Rendered: ```html The Future of Decentralized Social Media - Alice - zelo.news ``` ### What This Looks Like When Shared: **WhatsApp Preview:** ``` ┌─────────────────────────────────────────┐ │ [Article Image] │ ├─────────────────────────────────────────┤ │ The Future of Decentralized Social │ │ Media │ │ Exploring how Nostr and other │ │ decentralized protocols are reshaping │ │ social media... │ │ zelo.news │ └─────────────────────────────────────────┘ ``` **Twitter/X Preview:** ``` ┌─────────────────────────────────────────┐ │ [Large Article Image] │ ├─────────────────────────────────────────┤ │ The Future of Decentralized Social │ │ Media │ │ Exploring how Nostr and other │ │ decentralized protocols... │ │ 🔗 zelo.news │ └─────────────────────────────────────────┘ ``` ## Example 2: Profile Page When viewing Bob's profile who has published 15 articles: ### What Gets Rendered: ```html Bob - Profile - zelo.news ``` ### What This Looks Like When Shared: **Facebook/LinkedIn Preview:** ``` ┌─────────────────────────────────────────┐ │ [Bob's Profile Banner or Avatar] │ ├─────────────────────────────────────────┤ │ Bob on zelo.news │ │ Bitcoin enthusiast and writer exploring │ │ decentralized systems. • 15 articles │ │ published │ │ 🔗 ZELO.NEWS │ └─────────────────────────────────────────┘ ``` ## Example 3: Home Page When viewing the home page: ### What Gets Rendered: ```html zelo.news - Decentralized News on Nostr ``` ## Example 4: Search Results Page When searching for "bitcoin": ### What Gets Rendered: ```html Search: bitcoin - zelo.news ``` ## Example 5: Note Page (Short Post) When viewing a short text note from Charlie: ### What Gets Rendered: ```html Charlie's note - zelo.news ``` ## Benefits of This Implementation ### 1. Better Search Engine Rankings - Unique titles for every page - Descriptive meta descriptions - Proper semantic HTML structure - Keywords in meta tags ### 2. Rich Social Media Previews When users share links on: - **WhatsApp**: Shows article image, title, and description - **Facebook**: Rich preview with image, title, and description - **Twitter/X**: Large image card with content preview - **LinkedIn**: Professional preview with article details - **Discord**: Embedded preview with image and text - **Slack**: Link unfurling with full preview - **Telegram**: Rich message preview ### 3. Dynamic Content Handling - Meta tags update automatically when content loads - Fallback values ensure something always displays - Social media crawlers execute JavaScript and see updated tags ### 4. Professional Appearance - Consistent branding across all social platforms - Author attribution on all content - Timestamp information for articles - Category tags for better discovery ## Testing Your Implementation ### Quick Test with Twitter 1. Copy any article URL from your deployed site 2. Paste it into a new tweet 3. Twitter will show a preview - you should see the article image, title, and description ### Full Test with Facebook Debugger 1. Go to https://developers.facebook.com/tools/debug/ 2. Enter any page URL from your deployed site 3. Click "Scrape Again" 4. Review the preview - should show all meta tags and image ### Verify in Browser 1. Open any page 2. Right-click → Inspect 3. Go to Elements tab 4. Look at `` section 5. Should see all meta tags listed above ## Common Issues and Solutions ### Issue: Social preview not updating **Solution**: Use the social media debuggers to force a re-scrape - Facebook: https://developers.facebook.com/tools/debug/ - Twitter: https://cards-dev.twitter.com/validator - LinkedIn: https://www.linkedin.com/post-inspector/ ### Issue: Image not showing in preview **Solution**: Ensure images use absolute URLs (https://...) not relative (/image.jpg) ### Issue: Old title/description showing **Solution**: Clear browser cache or test in incognito mode ## Conclusion The SEO implementation provides: ✅ Professional social media previews on all platforms ✅ Better search engine visibility ✅ Dynamic updates for Nostr content ✅ Proper handling of images and descriptions ✅ Consistent branding across the web All without requiring server-side rendering - it works entirely in the browser with the @unhead library!