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

github.com/progrhyme/hugo-theme-bootie-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkey-amb <yasutake.kiyoshi@gmail.com>2015-04-28 09:48:01 +0300
committerkey-amb <yasutake.kiyoshi@gmail.com>2015-04-28 09:48:01 +0300
commitb8761a3a01ce22e37b732367c70ee05588701f53 (patch)
tree173e9b4ec97036a290e3ba171d313533e921cb6a /layouts
parent29f5b5701be9a1d11a71a7dd6fa8b46d0ed6bfb8 (diff)
make top-content and posts optional
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 7e61ec6..ef1ae00 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -11,7 +11,7 @@
</div>
</div>
-{{ partial "top-content.html" . }}
+{{ if isset .Site.Params "withTopContent" }}{{ partial "top-content.html" . }}{{ end }}
<!--
<div class="row">
@@ -33,11 +33,13 @@
</div>
</div> <!-- /.row -->
+{{ if isset .Site.Params "withSitePosts" }}
<hr />
<div class="row doc-main text-center">
<a href="{{ $baseUrl }}/post">See posts for {{ .Site.Title }}</a>
</div>
+{{ end }}
</main>