diff options
author | Dmytro Slupytskyi <dslupytskyi@gmail.com> | 2018-08-02 14:02:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 14:02:21 +0300 |
commit | 610cdc943a22af5a8be56acfd1c04bbcecdd591c (patch) | |
tree | af3ae78956317a2977cdade8d2571c8b05d7c9b0 | |
parent | 878271a7be8cc8df6c95143861df42ad2a751ff0 (diff) | |
parent | 5b689892d4540fd2a314d7f1c505704471925ae0 (diff) |
Merge pull request #24 from azmelanar/fix_links_for_multilingual_tags
add current language for tag list
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/_default/terms.html | 2 |
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> |