From 76bb19e3acf23006578ce23a38a75ef59e371f64 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 25 May 2024 23:18:41 -0300 Subject: [PATCH] Fix opengraph.rb --- nanoc/lib/mixin/opengraph.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nanoc/lib/mixin/opengraph.rb b/nanoc/lib/mixin/opengraph.rb index 198e9bf..8e101b3 100644 --- a/nanoc/lib/mixin/opengraph.rb +++ b/nanoc/lib/mixin/opengraph.rb @@ -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