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:
-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 }}