From 2ea30553057e6ed28878f5d852731ae4c16afbb2 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 3 Jan 2024 15:55:21 -0300 Subject: [PATCH] seo-related changes --- nanoc/rules/index.rules | 2 +- src/html/index.html.erb | 13 +++++++++++++ src/html/stream.html.erb | 2 +- src/sitemap.xml.erb | 16 ++++------------ 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/nanoc/rules/index.rules b/nanoc/rules/index.rules index 0d11d44..0f40cc2 100644 --- a/nanoc/rules/index.rules +++ b/nanoc/rules/index.rules @@ -7,7 +7,7 @@ locales.each do |locale| compile "/html/index.html.erb", rep: "/#{locale}/surah/index" do - context = Ryo.from(filename: "index.html.erb", locale:) + context = Ryo.from(filename: "index.html.erb", locale:, locales:) filter(:erb, locals: {context:}) filter(:tidy) write "/#{locale}/index.html" diff --git a/src/html/index.html.erb b/src/html/index.html.erb index 6a3765e..2ce6458 100644 --- a/src/html/index.html.erb +++ b/src/html/index.html.erb @@ -6,6 +6,19 @@ + + <% context.locales.each do |locale| %> + + <% end %> <%= inline_css('/css/postman.scss') %> <%= opengraph(context) %> diff --git a/src/html/stream.html.erb b/src/html/stream.html.erb index abe30dd..4a70eef 100644 --- a/src/html/stream.html.erb +++ b/src/html/stream.html.erb @@ -6,6 +6,7 @@ + <% end %> - <%= opengraph(context) %>
diff --git a/src/sitemap.xml.erb b/src/sitemap.xml.erb index 1c76b3e..3c5717d 100644 --- a/src/sitemap.xml.erb +++ b/src/sitemap.xml.erb @@ -4,22 +4,14 @@ <% locales.each do |locale| %>