diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 11:37:38 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 11:37:38 +0200 |
| commit | 60c3671b6f09f1f4d4a7d30216c94a80dbee6baa (patch) | |
| tree | 0b844a51bac8e61ea2bb51d34b69fdd0b43b8fc4 /app/helpers | |
| parent | 36a4194ee3013dfa834aa8d4d57b0bfacf724a1a (diff) | |
Bring some tags forward to 2026 and provide humanized asset name
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/social_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/social_helper.rb b/app/helpers/social_helper.rb index e66884a4..d6932a2f 100644 --- a/app/helpers/social_helper.rb +++ b/app/helpers/social_helper.rb | |||
| @@ -65,7 +65,7 @@ module SocialHelper | |||
| 65 | 65 | ||
| 66 | def og_image_alt | 66 | def og_image_alt |
| 67 | asset = @page&.persisted? ? @page.headline_asset : nil | 67 | asset = @page&.persisted? ? @page.headline_asset : nil |
| 68 | asset&.has_variant?(:og) ? asset.name.to_s : OG_SITE_NAME | 68 | asset&.has_variant?(:og) ? humanized_asset_name(asset) : OG_SITE_NAME |
| 69 | end | 69 | end |
| 70 | 70 | ||
| 71 | def og_title | 71 | def og_title |
