Skip to content

Commit

Permalink
Fix for tag pages to end .html - issue gohugoio/hugo#1989
Browse files Browse the repository at this point in the history
  • Loading branch information
osgav committed Sep 30, 2016
1 parent d0c19e8 commit b8e78b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion themes/casper/layouts/_default/single.html
Expand Up @@ -44,7 +44,7 @@ <h1 class="post-title">{{.Title}}</h1>
</time>
{{end}}
{{ range .Params.tags }}
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}/">#{{ . }}</a></span>
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}.html">#{{ . }}</a></span>
{{ end }}
</section>
</header>
Expand Down
2 changes: 1 addition & 1 deletion themes/casper/layouts/page/cover.html
Expand Up @@ -61,7 +61,7 @@ <h2 class="page-description">
</time>
{{end}}
{{ range .Params.tags }}
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}/">#{{ . }}</a></span>
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}.html">#{{ . }}</a></span>
{{ end }}
</section>
</header>
Expand Down
2 changes: 1 addition & 1 deletion themes/casper/layouts/page/single.html
Expand Up @@ -88,7 +88,7 @@ <h1 class="post-title">{{.Title}}</h1>
</time>
{{end}}
{{ range .Params.tags }}
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}/">#{{ . }}</a></span>
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}.html">#{{ . }}</a></span>
{{ end }}
</section>
</header>
Expand Down
2 changes: 1 addition & 1 deletion themes/casper/layouts/partials/li.html
Expand Up @@ -21,7 +21,7 @@ <h2 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{end}}
{{if .Params.tags }}on
{{ range $index, $tag := .Params.tags }}
<a href="{{$baseurl}}tags/{{ $tag | urlize }}/">#{{ $tag }}</a>,
<a href="{{$baseurl}}tags/{{ $tag | urlize }}.html">#{{ $tag }}</a>,
{{ end }}
{{end}}
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
Expand Down

0 comments on commit b8e78b9

Please sign in to comment.