diff options
author | Sorin Sbarnea <ssbarnea@redhat.com> | 2019-12-30 16:49:52 +0300 |
---|---|---|
committer | Sorin Sbarnea <ssbarnea@redhat.com> | 2019-12-30 16:49:52 +0300 |
commit | 31b94ccd426fa90215f5ceb2a645ca3343647cad (patch) | |
tree | c3438fc987e222157518e1de8b4834345ba23fca | |
parent | 2356158ae40813d511c67af0ec9dab3938a52799 (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.yml | 12 | ||||
-rw-r--r-- | layouts/_default/category.html | 2 |
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 }} |