From 0b1c015478026d7ccfd6af0af7888a95b964e7b0 Mon Sep 17 00:00:00 2001 From: Scott Murch Date: Wed, 22 Apr 2020 15:05:53 +0100 Subject: [PATCH] Add option to allow content to be shown on main page --- config.toml | 1 + layouts/index.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config.toml b/config.toml index 820aaf5..2d71d81 100644 --- a/config.toml +++ b/config.toml @@ -13,6 +13,7 @@ pygmentsUseClasses=true microBlogSection = "posts" displayMicroBlog = false displayRecent = true + displayHomeContent = false recentMax = 4 mail = "mail@example.com" phone = "8888888888" diff --git a/layouts/index.html b/layouts/index.html index 416d80b..32dfea3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,7 @@ {{define "main"}} + {{if .Site.Params.displayHomeContent}} + {{.Content}} + {{end}} {{if ne .Site.Params.displayRecent false}}
recent