Update nanoc/rules/
This commit is contained in:
parent
40e8753161
commit
f06432b2ae
6 changed files with 14 additions and 23 deletions
4
Rules
4
Rules
|
@ -53,6 +53,10 @@ compile "/robots.txt" do
|
|||
write("/robots.txt")
|
||||
end
|
||||
|
||||
##
|
||||
# /json/durations/*/*.json
|
||||
passthrough "/json/durations/*/*.json"
|
||||
|
||||
##
|
||||
# require rules
|
||||
require_rules "nanoc/rules/assets"
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
# Contains rules for images, fonts, etc
|
||||
|
||||
##
|
||||
# Contains rules that are related to assets (eg images, fonts, etc)
|
||||
|
||||
##
|
||||
# Fonts
|
||||
# fonts
|
||||
compile "/fonts/*" do
|
||||
write(item.identifier.to_s)
|
||||
filter :gzip
|
||||
|
@ -13,7 +11,7 @@ compile "/fonts/*" do
|
|||
end
|
||||
|
||||
##
|
||||
# Images
|
||||
# images
|
||||
compile "/images/*.svg" do
|
||||
write(item.identifier.to_s)
|
||||
filter :gzip
|
||||
|
@ -31,7 +29,3 @@ end
|
|||
compile "/favicon.ico" do
|
||||
write(item.identifier.to_s)
|
||||
end
|
||||
|
||||
##
|
||||
# JSON
|
||||
passthrough "/json/durations/*/*.json"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
##
|
||||
# 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,9 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
##
|
||||
# Rules for a redirect from /<locale>/random/ to a random surah
|
||||
# (eg /en/random/ -> /en/al-kahf/)
|
||||
# Contains rules for a redirect from /<locale>/random/ to a
|
||||
# random surah (eg /en/random/ -> /en/al-kahf/)
|
||||
|
||||
locales.each do |locale|
|
||||
compile "/html/random.html.erb", rep: "random/#{locale}" do
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
##
|
||||
# Rules for a redirect from the root path to the surah index
|
||||
# for a given locale (eg / -> /en/).
|
||||
# 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
|
||||
filter(:tidy)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
##
|
||||
# Rules for the surah stream available at /<locale>/<name>/.
|
||||
# Contains rules for the the surah stream available
|
||||
# at /<locale>/<name>/, /<locale>/<id>/
|
||||
|
||||
compile "/json/*/*/surah.json" do
|
||||
write(item.identifier.to_s)
|
||||
|
|
Loading…
Reference in a new issue