diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2017-11-27 23:06:52 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2017-11-27 23:06:52 +0300 |
commit | 42e9e7e2c53d9a54167cbc40a6063f9183e70e8a (patch) | |
tree | a2d948879e2017955b93219387eb7c2202a7e3b6 /Rules | |
parent | 38e7db31332bccff273841790f7128949032ccdb (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-- | Rules | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |