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

github.com/saadnpq/npq-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Murch <scott@sco-pi.net>2020-04-22 17:05:53 +0300
committerScott Murch <scott@sco-pi.net>2020-04-22 17:05:53 +0300
commit0b1c015478026d7ccfd6af0af7888a95b964e7b0 (patch)
treea8089d3db861031fcc0fc3d0a32da7efc10f20de /layouts
parentcd6e9195eda76d7c981f4d6af0b20e4446f8f0e8 (diff)
Add option to allow content to be shown on main page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 416d80b..32dfea3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,4 +1,7 @@
{{define "main"}}
+ {{if .Site.Params.displayHomeContent}}
+ {{.Content}}
+ {{end}}
{{if ne .Site.Params.displayRecent false}}
<div class="section">
<div class="section-title">recent</div>