diff --git a/nanoc/lib/mixin/opengraph.rb b/nanoc/lib/mixin/opengraph.rb index 38321e4..498aa96 100644 --- a/nanoc/lib/mixin/opengraph.rb +++ b/nanoc/lib/mixin/opengraph.rb @@ -13,7 +13,7 @@ module Mixin::OpenGraph description: t(context.locale, "meta.stream.description", surah_name: surah.name), url: "https://al-quran.reflectslight.io/#{context.locale}/#{surah.slug}/", image: "https://al-quran.reflectslight.io/images/og/#{surah.id}.png"} - when "surah-index.html.erb" + when "redirect.html.erb", "surah-index.html.erb" {title: t(context.locale, "TheNobleQuran"), description: t(context.locale, "meta.index.description"), url: "https://al-quran.reflectslight.io/#{context.locale}/", diff --git a/src/html/_opengraph.html.erb b/src/html/_opengraph.html.erb index 20c308b..9362471 100644 --- a/src/html/_opengraph.html.erb +++ b/src/html/_opengraph.html.erb @@ -1,6 +1,6 @@ - + diff --git a/src/html/main/redirect.html.erb b/src/html/main/redirect.html.erb index 1d9dd78..f8ecfa3 100644 --- a/src/html/main/redirect.html.erb +++ b/src/html/main/redirect.html.erb @@ -13,6 +13,7 @@ hreflang="<%= locale %>" /> <% end %> <%= erb("_favicon.html.erb") %> + <%= opengraph(Ryo(filename: "redirect.html.erb", locale: "en")) %>