From e7d12414591045ecc6f5a683717756781b74501e Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 14 Sep 2024 05:55:14 -0300 Subject: [PATCH] Fix render of `_opengraph.html.erb` --- share/al-quran.reflectslight.io/CHANGELOG | 3 +++ src/html/_opengraph.html.erb | 4 +++- src/html/main/redirect.html.erb | 2 +- src/html/main/surah-stream.html.erb | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/share/al-quran.reflectslight.io/CHANGELOG b/share/al-quran.reflectslight.io/CHANGELOG index 5083f414e..9a21fe257 100644 --- a/share/al-quran.reflectslight.io/CHANGELOG +++ b/share/al-quran.reflectslight.io/CHANGELOG @@ -2,6 +2,9 @@ ** vNEXT +**** Fix ~_opengraph.html.erb~ typos +Fix multiple issues with the render of ~_opengraph.html.erb~ + **** Replace font-size rules with tail.css classes This change replaces custom 'font-size' rules with standard tail.css classes (eg text-lg, etc) diff --git a/src/html/_opengraph.html.erb b/src/html/_opengraph.html.erb index 70c9bd5d4..e11ac2aeb 100644 --- a/src/html/_opengraph.html.erb +++ b/src/html/_opengraph.html.erb @@ -9,7 +9,7 @@ - + <% elsif file == "random.html.erb" %> @@ -19,4 +19,6 @@ +<% else %> + <% error! "unknown file: #{file}" %> <% end %> diff --git a/src/html/main/redirect.html.erb b/src/html/main/redirect.html.erb index 27484624d..78fb11e8b 100644 --- a/src/html/main/redirect.html.erb +++ b/src/html/main/redirect.html.erb @@ -4,7 +4,7 @@ <%= t("en", "TheNobleQuran") %> <%= erb("_version.html.erb") %> - <%= erb("_opengraph.html.erb", {page: "redirect.html.erb", context:}) %> + <%= erb("_opengraph.html.erb", {file: "redirect.html.erb", context:}) %> <% locales.each do |locale| %> <%= erb("_version.html.erb") %> - <%= erb("_opengraph.html.erb", {file: "stream-stream.html.erb", context:}) %> + <%= erb("_opengraph.html.erb", {file: "surah-stream.html.erb", context:}) %>