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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index c324436..4a2dfca 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -56,10 +56,10 @@
{{ range sort $pages "Params.weight" }}
{{ if ne .Name "contact.md" }}
{{ if .File }}
- {{ if eq .File.Dir "projects/" }}
+ {{ if eq (os.Stat .File.Dir).Name "projects" }}
<!-- Now for some cool projects -->
{{ partial "home/projects.html" . }}
- {{ else if eq .File.Dir "blog/" }}
+ {{ else if eq (os.Stat .File.Dir).Name "blog" }}
<!-- Let`s show some blog posts -->
{{ partial "home/blog.html" . }}
{{ else }}