Fix opengraph.rb
This commit is contained in:
parent
09365dd283
commit
76bb19e3ac
1 changed files with 6 additions and 6 deletions
|
@ -11,18 +11,18 @@ module Mixin::OpenGraph
|
|||
surah = context.surah
|
||||
{title: t(context.locale, "TheNobleQuran"),
|
||||
description: surah.name,
|
||||
url: "https://<%= hostname %>/#{context.locale}/#{surah.slug}/",
|
||||
image: "https://<%= hostname %>/images/og/#{surah.id}.png"}
|
||||
url: "https://#{hostname}/#{context.locale}/#{surah.slug}/",
|
||||
image: "https://#{hostname}/images/og/#{surah.id}.png"}
|
||||
when "redirect.html.erb", "surah-index.html.erb"
|
||||
{title: t(context.locale, "TheNobleQuran"),
|
||||
description: t(context.locale, "meta.index.description"),
|
||||
url: "https://<%= hostname %>/#{context.locale}/",
|
||||
image: "https://<%= hostname %>/images/og/0.png"}
|
||||
url: "https://#{hostname}/#{context.locale}/",
|
||||
image: "https://#{hostname}/images/og/0.png"}
|
||||
when "random.html.erb"
|
||||
{title: t(context.locale, "TheNobleQuran"),
|
||||
description: t(context.locale, "meta.random.description"),
|
||||
url: "https://<%= hostname %>/#{context.locale}/random/",
|
||||
image: "https://<%= hostname %>/images/og/0.png"}
|
||||
url: "https://#{hostname}/#{context.locale}/random/",
|
||||
image: "https://#{hostname}/images/og/0.png"}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue