diff --git a/nanoc/rules/random.rules b/nanoc/rules/random.rules index 4ec994c..f81c9fd 100644 --- a/nanoc/rules/random.rules +++ b/nanoc/rules/random.rules @@ -7,8 +7,8 @@ locales.each do |locale| compile "/html/random.html.erb", rep: "random/#{locale}" do - title = i18n[locale].TheNobleQuran - filter(:erb, locals: {locale:, title:}) + context = Ryo.from({locale:}) + filter(:erb, locals: {context:}) write("/#{locale}/random/index.html") end end diff --git a/src/html/random.html.erb b/src/html/random.html.erb index 83fbb5f..450dcc6 100644 --- a/src/html/random.html.erb +++ b/src/html/random.html.erb @@ -1,7 +1,7 @@ - +
-