From 84b44f081ca50ad8242c4366ccbe40fe015367a4 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 26 Feb 2024 18:20:38 -0300 Subject: [PATCH] Set surah_name within opengraph.rb --- nanoc/lib/mixin/opengraph.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanoc/lib/mixin/opengraph.rb b/nanoc/lib/mixin/opengraph.rb index a298941dc..1b8b0ae6f 100644 --- a/nanoc/lib/mixin/opengraph.rb +++ b/nanoc/lib/mixin/opengraph.rb @@ -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"