diff options
author | Austin Gebauer <agebauer@hashicorp.com> | 2020-07-01 03:51:14 +0300 |
---|---|---|
committer | Austin Gebauer <agebauer@hashicorp.com> | 2020-07-01 03:51:14 +0300 |
commit | 5998ca3195dfc90a6635a948674f69b569116cb0 (patch) | |
tree | 9198a6b9dc5b460b5dc35d44798a340e890e5cb2 | |
parent | acf1252856ef953109de81b22888f94c21b57904 (diff) |
feat: allow users to set custom home page content via content/_index.md
-rw-r--r-- | layouts/index.html | 6 |
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 }} |