diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-11-08 01:31:25 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-11-08 01:52:44 +0300 |
commit | b15ac898da07c1d84b4b7fa6a1d9e5221fe54d96 (patch) | |
tree | d831a50e278505f9da447a23ec6a96b1f1fda61a /Rules | |
parent | fb0fc7d623ee33d529933998fa8763f12e60b627 (diff) |
Version the SCSS files. Fixes #28.
Diffstat (limited to 'Rules')
-rw-r--r-- | Rules | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -48,7 +48,7 @@ compile '/**/*.scss' do filter :sass, syntax: :scss, style: :compressed - write item.identifier.without_ext + '.css' + write item.identifier.without_ext + '-v' + rep.item[:version].to_s + '.css' end compile '/index.*' do @@ -67,10 +67,6 @@ compile '/robots.*' do write '/robots.txt' end -route '/**/*.scss' do - item.identifier.without_ext + '.css' -end - route '/**/*.{html,md}' do if item.identifier =~ '/index.*' '/index.html' @@ -85,9 +81,9 @@ compile '/**/*' do end end +layout '/**/*', :erb + # Leave the favicon alone. passthrough '/favicon.ico' # Let's Encrypt challenge. passthrough '/.well-known/**/*' - -layout '/**/*', :erb |