Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-04-09 14:42:08 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-04-09 19:00:22 +0300
commit764239468a728daae24e947a4c7484ebef5e8689 (patch)
tree0f0e3956482ee6c6b270fcff44c1730e4f6c27f5 /Rules
parentabbafef38451c233df92d83e57b4cf46ce677a36 (diff)
Add dynamic archives
Diffstat (limited to 'Rules')
-rw-r--r--Rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/Rules b/Rules
index b7963761..5874435d 100644
--- a/Rules
+++ b/Rules
@@ -34,6 +34,12 @@ compile '/404.*' do
write '/404.html'
end
+compile '/archives.*' do
+ filter :erb
+ layout '/archives.*'
+ write '/archives/index.html'
+end
+
compile '/**/*.html' do
layout '/default.*'
end
@@ -115,6 +121,9 @@ compile '/**/*' do
end
end
+# Leave yaml files out
+ignore '/_data/*.yaml'
+
layout '/**/*', :erb
# Leave the favicon alone.