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

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Gebauer <agebauer@hashicorp.com>2020-07-01 03:51:14 +0300
committerAustin Gebauer <agebauer@hashicorp.com>2020-07-01 03:51:14 +0300
commit5998ca3195dfc90a6635a948674f69b569116cb0 (patch)
tree9198a6b9dc5b460b5dc35d44798a340e890e5cb2
parentacf1252856ef953109de81b22888f94c21b57904 (diff)
feat: allow users to set custom home page content via content/_index.md
-rw-r--r--layouts/index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 086daca..2ffe01f 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,3 +1,7 @@
{{ define "main" }}
- {{- partial "category-posts.html" . -}}
+ {{ if .Content }}
+ {{ .Content }}
+ {{ else }}
+ {{- partial "category-posts.html" . -}}
+ {{ end }}
{{ end }}