mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-06-26 04:59:35 +00:00
Add Pressa::OpenGraph, a best-effort scraper that pulls og:image (falling back to twitter:image) from a linked page's HTML. bake new_link and bake preview_link now use it to prefill the Image front-matter field for link posts, unless the payload already supplies one. Network failures and missing tags just resolve to nil so creating a post never blocks on a slow or broken link; the fetch happens once at draft-creation time, not on every build. |
||
|---|---|---|
| .. | ||
| config | ||
| drafts | ||
| posts | ||
| projects | ||
| utils | ||
| views | ||
| coverage.rb | ||
| drafts.rb | ||
| git.rb | ||
| link_post.rb | ||
| open_graph.rb | ||
| plugin.rb | ||
| publish.rb | ||
| site.rb | ||
| site_generator.rb | ||