Update opengraph.rb

This commit is contained in:
0x1eef 2024-05-25 23:08:37 -03:00
parent f9282c1345
commit 5b10986d22
2 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@ This repository contains the source code of
a static website for reading (and listening to)
The Noble Quran. After the website is built,
the build directory consists of HTML, CSS, JavaScript
and other static assets that can be hosted by
and other static assets that can be hosted by
a web server such as nginx, apache, etc.
## Requirements

View file

@ -11,13 +11,13 @@ module Mixin::OpenGraph
surah = context.surah
{title: t(context.locale, "TheNobleQuran"),
description: surah.name,
url: "https://al-quran.reflectslight.io/#{context.locale}/#{surah.slug}/",
image: "https://al-quran.reflectslight.io/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://al-quran.reflectslight.io/#{context.locale}/",
image: "https://al-quran.reflectslight.io/images/og/0.png"}
url: "https://<%= hostname %>/#{context.locale}/",
image: "https://<%= hostname %>/images/og/0.png"}
end
end
end