Skip to content

Commit 2610147

Browse files
authored
Fixes Upstream Issue 349 - tag link has double forward slash (#354)
* Fixes Upstream Issue 349 - tag link has double forward slash * Updated fix for Upstream Issue 349 - tag link has double forward slash
1 parent 5bb2aa1 commit 2610147

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

layouts/_default/single.html

+4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
{{ if .Params.tags }}
99
<div class="blog-tags">
1010
{{ range .Params.tags }}
11+
<!-- Fix for "https://github.com/halogenica/beautifulhugo/issues/349".
12+
Inspired by "https://github.com/dovidio/personalwebsite/commit/34762e94c29fd2c26c16c45f8ae2de21bdf9b46d".
1113
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
14+
-->
15+
<a href="{{"tags" | absLangURL}}/{{ . | urlize }}/">{{ . }}</a>&nbsp;
1216
{{ end }}
1317
</div>
1418
{{ end }}

layouts/_default/terms.html

+5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ <h4 class="panel-title">
1818
</a>
1919
<div id="collapse{{ $value.Name | anchorize }}" class="panel-collapse collapse">
2020
<div class="panel-body">
21+
<!-- Fix for "https://github.com/halogenica/beautifulhugo/issues/349".
22+
Inspired by "https://github.com/halogenica/beautifulhugo/pull/354#issuecomment-2106454808".
23+
2124
<a href="{{ $.Site.LanguagePrefix | absURL }}/{{ $data.Plural }}/{{ $value.Name | urlize }}/" class="list-group-item view-all">
25+
-->
26+
<a href="{{ $data.Plural | absLangURL }}/{{ $value.Name | urlize }}/" class="list-group-item view-all">
2227
View all</a>
2328
<div class="list-group">
2429
{{ range $item := $value.WeightedPages }}

layouts/partials/post_preview.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ <h3 class="post-subtitle">
3131
{{ if .Params.tags }}
3232
<div class="blog-tags">
3333
{{ range .Params.tags }}
34-
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
35-
{{ end }}
34+
<!-- Fix for "https://github.com/halogenica/beautifulhugo/issues/349".
35+
From "https://github.com/dovidio/personalwebsite/commit/34762e94c29fd2c26c16c45f8ae2de21bdf9b46d".
36+
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
37+
-->
38+
<a href="{{"tags" | absLangURL}}/{{ . | urlize }}/">{{ . }}</a>&nbsp;
39+
{{ end }}
3640
</div>
3741
{{ end }}
3842

0 commit comments

Comments
 (0)