Add option to allow content to be shown on main page
This commit is contained in:
parent
cd6e9195ed
commit
0b1c015478
2 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@ pygmentsUseClasses=true
|
||||||
microBlogSection = "posts"
|
microBlogSection = "posts"
|
||||||
displayMicroBlog = false
|
displayMicroBlog = false
|
||||||
displayRecent = true
|
displayRecent = true
|
||||||
|
displayHomeContent = false
|
||||||
recentMax = 4
|
recentMax = 4
|
||||||
mail = "mail@example.com"
|
mail = "mail@example.com"
|
||||||
phone = "8888888888"
|
phone = "8888888888"
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{{define "main"}}
|
{{define "main"}}
|
||||||
|
{{if .Site.Params.displayHomeContent}}
|
||||||
|
{{.Content}}
|
||||||
|
{{end}}
|
||||||
{{if ne .Site.Params.displayRecent false}}
|
{{if ne .Site.Params.displayRecent false}}
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<div class="section-title">recent</div>
|
<div class="section-title">recent</div>
|
||||||
|
|
Loading…
Reference in a new issue