Skip to content

Commit b4ffc7d

Browse files
authored
Merge pull request #29 from runzexia/fix-broken-link
Fix multi language broken link
2 parents 6d768a2 + 352d686 commit b4ffc7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/_default/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1>{{ .Title }}</h1>
1010
{{ range (where .Data.Pages "Section" "!=" "") }}
1111
<li>
1212
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
13-
<a href="{{ .URL }}">{{ .Title }}</a>
13+
<a href="/{{ .URL }}">{{ .Title }}</a>
1414
</li>
1515
{{ end }}
1616
</ul>

layouts/_default/terms.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h1>{{ .Title }}</h1>
55
<ul class="terms">
66
{{ range $key, $value := .Data.Terms }}
77
<li>
8-
<a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}">
8+
<a href="/{{ $.Site.Language.Lang }}{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}">
99
{{ $key }}
1010
</a>
1111
({{ len $value }})

0 commit comments

Comments
 (0)