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:
authorSorin Sbarnea <ssbarnea@redhat.com>2019-12-30 16:49:52 +0300
committerSorin Sbarnea <ssbarnea@redhat.com>2019-12-30 16:49:52 +0300
commit31b94ccd426fa90215f5ceb2a645ca3343647cad (patch)
treec3438fc987e222157518e1de8b4834345ba23fca
parent2356158ae40813d511c67af0ec9dab3938a52799 (diff)
Fixes missing slash on index pages
Avoids "target is a directory, href lacks trailing slash" error when linting with htlmtest. Fixes: #60
-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 }}