From 5998ca3195dfc90a6635a948674f69b569116cb0 Mon Sep 17 00:00:00 2001 From: Austin Gebauer Date: Tue, 30 Jun 2020 17:51:14 -0700 Subject: feat: allow users to set custom home page content via content/_index.md --- layouts/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }} -- cgit v1.2.3