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

github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryx.z <xiaohei.zyx@gmail.com>2019-12-31 05:34:11 +0300
committerGitHub <noreply@github.com>2019-12-31 05:34:11 +0300
commit64f4dcd55a5cc79f07b30c30418a9b0967ad1849 (patch)
tree4bb12ced9ee37f5806339a8a9aaa521eefca9f25
parentd22689959858912089d47375e72ac5acb754b2a8 (diff)
parent31b94ccd426fa90215f5ceb2a645ca3343647cad (diff)
Merge pull request #61 from ssbarnea/master
Fixes missing slash on index pages
-rw-r--r--exampleSite/config.yml12
-rw-r--r--layouts/_default/category.html2
2 files changed, 7 insertions, 7 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index a0eade8..aa454e7 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -20,7 +20,7 @@ outputFormats: # use for search. recommend not to modify
baseName: "searchindex"
isPlainText: true
notAlternative: true
-
+
outputs:
home: ["HTML","RSS","SearchIndex"] # recommend not to modify
# sitemap
@@ -33,32 +33,32 @@ menu:
main:
- identifier: home
name: Home
- title: Home
+ title: Home
url: /
weight: 1
- identifier: archives
name: Archives
title: Archives
- url: /posts
+ url: /posts/
weight: 2
- identifier: categories
name: Categories
title: Categories
- url: /categories
+ url: /categories/
weight: 3
- identifier: tags
name: Tags
title: Tags
- url: /tags
+ url: /tags/
weight: 4
- identifier: about
name: About
title: About
- url: /about
+ url: /about/
weight: 5
diff --git a/layouts/_default/category.html b/layouts/_default/category.html
index fb5ae98..379c32a 100644
--- a/layouts/_default/category.html
+++ b/layouts/_default/category.html
@@ -7,7 +7,7 @@
<p class="text-muted hidden-xs">{{- T "total_category" (len $categories) }}</p>
<nav role="navigation" id="nav-main" class="okayNav">
<ul>
- <li><a href="{{- "categories" | relURL }}">{{- T "nav_all" }}</a></li>
+ <li><a href="{{- "categories/" | relURL }}">{{- T "nav_all" }}</a></li>
{{- range $categories }}
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a></li>
{{- end }}