Commit Graph

2 Commits

Author SHA1 Message Date
claw d30e41f721 fix: clean orphaned article variants, add JSON-LD, fix in-article ad slot
Build and Deploy / build-and-test (push) Failing after 33s
Build and Deploy / build-image (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped
- Add cleanOldArticles() and cleanOldSections() to remove stale directories
- Add ADSENSE_IN_ARTICLE_SLOT constant (was missing, causing ReferenceError)
- Add renderInArticleAdUnit() using slot 9095112841 for article pages
- Add renderArticleJsonLd() for NewsArticle structured data
- Pass jsonLd through renderShell() into <head>
- Fix ads.txt to use ADSENSE_CLIENT env var instead of hardcoded pub-id
2026-06-02 12:39:27 +00:00
claw 16cad3fe36 feat: integrate WebP/AVIF image optimization into build pipeline
Build and Deploy / build-and-test (push) Failing after 28s
Build and Deploy / build-image (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped
- Add sharp dependency for image format conversion
- Generate WebP (quality 80) and AVIF (quality 70) variants for all raster images
- Render <picture> elements with srcset fallbacks (AVIF > WebP > original)
- SVG images remain as <img> without picture wrapper
- Update Dockerfile to install libvips for sharp, copy from public/ dir
- Add nginx cache rules for .webp and .avif files
- Add .gitignore for node_modules, public, dist
2026-05-31 16:21:03 +00:00