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>2017-11-27 23:06:52 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2017-11-27 23:06:52 +0300
commit42e9e7e2c53d9a54167cbc40a6063f9183e70e8a (patch)
treea2d948879e2017955b93219387eb7c2202a7e3b6 /Rules
parent38e7db31332bccff273841790f7128949032ccdb (diff)
Move layouts down the chain to fix loading issues
Fixes https://gitlab.com/gitlab-com/gitlab-docs/issues/143
Diffstat (limited to 'Rules')
-rw-r--r--Rules12
1 files changed, 6 insertions, 6 deletions
diff --git a/Rules b/Rules
index ff7a5aef..b053fc85 100644
--- a/Rules
+++ b/Rules
@@ -56,14 +56,14 @@ compile '/**/*.md' do
},
with_toc: include_toc
- if item[:layout].nil?
- layout '/default.*'
- else
- layout "/#{item[:layout]}.*"
- end
-
filter :md_to_html_ext
filter :admonition
+
+ if item[:layout].nil?
+ layout '/default.*'
+ else
+ layout "/#{item[:layout]}.*"
+ end
else
layout '/redirect.*'
end