Fix project links for multilingual sites

Use `relLangURL` rather than `relURL` for project links.

See #442
This commit is contained in:
Dongdong Tian authored and gcushen committed 2018-01-14 13:02:48 +00:00
1 parent 04cdf9c827
commit 188757285f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@
{{ end }}
{{ if $.Params.projects }}
{{ range $.Params.projects }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ printf "project/%s/" . | relURL }}">
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ printf "project/%s/" . | relLangURL }}">
{{ i18n "btn_project" }}
</a>
{{ end }}
+1 -1
View File
@@ -22,7 +22,7 @@
</a>
{{ end }}
{{ range $.Params.projects }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ printf "project/%s/" . | relURL }}">
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ printf "project/%s/" . | relLangURL }}">
{{ i18n "btn_project" }}
</a>
{{ end }}