Update nanoc/rules/
This commit is contained in:
parent
1452119439
commit
7908b7f2a3
5 changed files with 16 additions and 5 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
# contains rules for images, fonts, etc
|
||||
|
||||
##
|
||||
# Contains rules for images, fonts, etc
|
||||
|
||||
##
|
||||
# fonts
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
# contains rules for the surah index available at /<locale>/
|
||||
|
||||
##
|
||||
# Contains rules for the surah index available
|
||||
# at /<locale>/
|
||||
|
||||
locales.each do |locale|
|
||||
compile "/html/index.html.erb", rep: "/#{locale}/surah/index" do
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
# contains rules for a redirect from /<locale>/random/ to a
|
||||
|
||||
##
|
||||
# Contains rules for a redirect from /<locale>/random/ to a
|
||||
# random surah (eg /en/random/ -> /en/al-kahf/)
|
||||
|
||||
locales.each do |locale|
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
# contains rules for a redirect from the root path
|
||||
|
||||
##
|
||||
# Contains rules for a redirect from the root path
|
||||
# to the surah index for a given locale (eg / -> /en/)
|
||||
|
||||
compile "/html/redirect.html.erb" do
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
# contains rules for the the surah stream available
|
||||
|
||||
##
|
||||
# Contains rules for the the surah stream available
|
||||
# at /<locale>/<name>/, /<locale>/<id>/
|
||||
|
||||
compile "/json/*/*/surah.json" do
|
||||
|
|
Loading…
Reference in a new issue