Merge pull request #2 from sco-pi/master
Add option to allow content to be shown on main page
This commit is contained in:
commit
14f98788bb
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