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

github.com/azmelanar/hugo-theme-pixyll.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmytro Slupytskyi <dslupytskyi@gmail.com>2018-08-02 14:02:21 +0300
committerGitHub <noreply@github.com>2018-08-02 14:02:21 +0300
commit610cdc943a22af5a8be56acfd1c04bbcecdd591c (patch)
treeaf3ae78956317a2977cdade8d2571c8b05d7c9b0
parent878271a7be8cc8df6c95143861df42ad2a751ff0 (diff)
parent5b689892d4540fd2a314d7f1c505704471925ae0 (diff)
Merge pull request #24 from azmelanar/fix_links_for_multilingual_tags
add current language for tag list
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/_default/terms.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 32a6e98..4b3cb57 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,6 +1,6 @@
archetypeDir = "archetypes"
author = "admin"
-baseUrl = "/"
+baseUrl = "http://localhost:1313"
buildDrafts = false
relativeURLs = true
canonifyUrls = true
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 19723a5..5efe914 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -28,7 +28,7 @@ $(document).ready(function() {
<h3 id="title">{{ .Title }}</h3>
{{ $data := .Data }}
{{ range $key,$value := .Data.Terms.ByCount }}
- <a href="{{ $baseurl }}/{{ $data.Plural }}/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> {{ $value.Count }} <br>
+ <a href="{{ $baseurl | relLangURL }}/{{ $data.Plural }}/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> {{ $value.Count }} <br>
{{ end }}
{{ end }}
</div>