diff options
author | key-amb <yasutake.kiyoshi@gmail.com> | 2015-04-28 09:48:01 +0300 |
---|---|---|
committer | key-amb <yasutake.kiyoshi@gmail.com> | 2015-04-28 09:48:01 +0300 |
commit | b8761a3a01ce22e37b732367c70ee05588701f53 (patch) | |
tree | 173e9b4ec97036a290e3ba171d313533e921cb6a /layouts | |
parent | 29f5b5701be9a1d11a71a7dd6fa8b46d0ed6bfb8 (diff) |
make top-content and posts optional
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 4 |
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> |