diff options
-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 }} |