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_test.rb | ||
| drafts_test.rb | ||
| git_test.rb | ||
| link_post_test.rb | ||
| open_graph_test.rb | ||
| plugin_test.rb | ||
| publish_test.rb | ||
| site_generator_rendering_test.rb | ||
| site_generator_test.rb | ||
| site_test.rb | ||
| test_helper.rb | ||