Add option to allow content to be shown on main page

This commit is contained in:
Scott Murch 2020-04-22 15:05:53 +01:00
parent cd6e9195ed
commit 0b1c015478
2 changed files with 4 additions and 0 deletions

View file

@ -13,6 +13,7 @@ pygmentsUseClasses=true
microBlogSection = "posts"
displayMicroBlog = false
displayRecent = true
displayHomeContent = false
recentMax = 4
mail = "mail@example.com"
phone = "8888888888"

View file

@ -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>