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"
|
||||
displayMicroBlog = false
|
||||
displayRecent = true
|
||||
displayHomeContent = false
|
||||
recentMax = 4
|
||||
mail = "mail@example.com"
|
||||
phone = "8888888888"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue