diff --git a/README.md b/README.md index a28a1da..5badcf6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/nanoc/lib/mixin/opengraph.rb b/nanoc/lib/mixin/opengraph.rb index 44ccf3b..bf66a45 100644 --- a/nanoc/lib/mixin/opengraph.rb +++ b/nanoc/lib/mixin/opengraph.rb @@ -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