Merge pull request #2 from sco-pi/master

Add option to allow content to be shown on main page
This commit is contained in:
saad 2020-05-15 22:37:41 +02:00 committed by GitHub
commit 14f98788bb
2 changed files with 4 additions and 0 deletions

View file

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

View file

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