diff --git a/nanoc/rules/index.rules b/nanoc/rules/index.rules index 0d11d44d7..0f40cc26a 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 6a3765e91..2ce64582d 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 abe30dd1f..9b71780a6 100644 --- a/src/html/stream.html.erb +++ b/src/html/stream.html.erb @@ -6,6 +6,7 @@ + https://al-quran.reflectslight.io/<%= locale %>/ - <% locales.each do |locale| %> - - <% end %> + 1.0 + weekly <% Ryo.each(slugs) do |_id, slug| %> https://al-quran.reflectslight.io/<%= locale %>/<%= slug %>/ - <% locales.each do |locale| %> - - <% end %> + 0.7 + weekly <% end %> <% end %>