Set surah_name within opengraph.rb

This commit is contained in:
0x1eef 2024-02-26 18:20:38 -03:00
parent b784c2bb33
commit 84b44f081c

View file

@ -9,7 +9,7 @@ module Mixin::OpenGraph
case context.filename
when "stream.html.erb"
{title: t(context.locale, "TheNobleQuran"),
description: t(context.locale, "meta.stream.description"),
description: t(context.locale, "meta.stream.description", surah_name: context.surah.name),
url: "https://al-quran.reflectslight.io/#{context.locale}/#{context.surah.slug}/",
image: "https://al-quran.reflectslight.io/images/opengraph/#{context.surah.id}.png"}
when "index.html.erb"