mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 16:14:05 +00:00
Fix project links for multilingual sites
Use `relLangURL` rather than `relURL` for project links. See #442
This commit is contained in:
1 parent
04cdf9c827
commit
188757285f
2 files changed
+2
-2
No files matched your search
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user