diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/index.json (renamed from layouts/index.json) | 6 | ||||
| -rw-r--r-- | layouts/partials/post-tags.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/index.json b/layouts/_default/index.json index de685ff..7f30c80 100644 --- a/layouts/index.json +++ b/layouts/_default/index.json @@ -1,7 +1,7 @@ {{- /* Generate the search index. */ -}} {{- $pages := slice -}} -{{- $mainSections := site.Params.mainSections | default (slice "posts") }} +{{- $mainSections := site.Params.mainSections | default (slice "posts") -}} {{- $pages = where site.RegularPages.ByDate.Reverse "Type" "in" $mainSections -}} {{- $.Scratch.Add "pagesIndex" slice -}} @@ -17,8 +17,8 @@ {{- /* Add page to index. */ -}} {{- if not (in ($.Scratch.Get "urlsAdded") $page.Permalink) -}} - {{/* Exclude virtual pages which aren't backed by a file */}} - {{ if .File }} + {{- /* Exclude virtual pages which aren't backed by a file */ -}} + {{ if .File -}} {{- $publishDate := $page.PublishDate -}} {{- if $publishDate.IsZero -}} diff --git a/layouts/partials/post-tags.html b/layouts/partials/post-tags.html index 267bbab..68d29c2 100644 --- a/layouts/partials/post-tags.html +++ b/layouts/partials/post-tags.html @@ -4,7 +4,7 @@ <ul class="post-tags"> {{ range $index, $name := sort $tags -}} <li> - <a href="{{ (printf "/tags/%s/" $name) | urlize }}"> + <a href="/tags/{{ (printf "%s" $name) | urlize }}"> {{ $name | markdownify }} </a> </li> |
