Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/g1eny0ung/hugo-theme-dream.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYue Yang <g1enyy0ung@gmail.com>2021-01-27 13:42:37 +0300
committerYue Yang <g1enyy0ung@gmail.com>2021-01-27 13:42:37 +0300
commite695204f2c8dd96da8596c63440d9f6d961b05df (patch)
treee0e6bece1e83538f8a5c6f765cae2e004da07849
parent40224edff17bdfa6b90796be09d6851ebe5141c9 (diff)
Add missing relLangURL handlingv1.6.0
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 34b508c..3b3f6f1 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -41,7 +41,7 @@
{{ if .Site.Taxonomies.tags }}
<section class="ui attached center aligned segment dream-tags">
{{ range $name, $_ := .Site.Taxonomies.tags }}
- {{ $link := printf "/tags/%s/" $name | urlize }}
+ {{ $link := printf "/tags/%s/" $name | urlize | relLangURL }}
{{ $title := $name | humanize | title }}
<a class="ui label" href="{{ $link }}" title="{{ $title }}">
{{ $title }}
@@ -65,7 +65,7 @@
{{ if le ($scratch.Get "categoriesLimit") $categoriesLimitInHeader }}
<div class="title">
<i class="dropdown icon"></i>
- {{ $link := printf "/categories/%s/" $name | urlize }}
+ {{ $link := printf "/categories/%s/" $name | urlize | relLangURL }}
{{ $title := $name | humanize | title }}
<a class="item" href="{{ $link }}" title="{{ $title }}">
{{ $title }}