Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/saadnpq/npq-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaad <saadnpq@protonmail.com>2020-05-15 23:37:41 +0300
committerGitHub <noreply@github.com>2020-05-15 23:37:41 +0300
commit14f98788bb9193d7ca063d2cb07eecaec2748e86 (patch)
tree3983adf763499d9091b0176ff0ce0b27dcbc7535
parente0bc510bdcd165d4d3079c16c720465e60f2c369 (diff)
parent0b1c015478026d7ccfd6af0af7888a95b964e7b0 (diff)
Merge pull request #2 from sco-pi/master
Add option to allow content to be shown on main page
-rw-r--r--config.toml1
-rw-r--r--layouts/index.html3
2 files changed, 4 insertions, 0 deletions
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}}
<div class="section">
<div class="section-title">recent</div>