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

github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/taxonomy.html')
-rw-r--r--layouts/_default/taxonomy.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 23de21f..be9aa69 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -14,10 +14,11 @@
</header>
<div class="card-content">
<div class="content is-medium">
+ {{- $ctx := . -}}
{{ range .Site.Taxonomies.categories.ByCount }}
<div class="container" style="margin-bottom: 0.5rem">
- <a href="{{ "/categories/" | relLangURL }}{{ .Name | urlize }}">{{ .Name }}</a>
- <span class="tag is-pulled-right">
+ <a href="{{ $ctx.Site.BaseURL }}{{ "/categories/" | relLangURL }}{{ .Name | urlize }}">{{ .Name }}</a>
+ <span class="tag is-medium is-pulled-right">
{{ .Count }}
</span>
</div>
@@ -37,10 +38,11 @@
</header>
<div class="card-content">
<div class="field is-grouped is-grouped-multiline">
+ {{- $ctx := . -}}
{{ range .Site.Taxonomies.tags.ByCount }}
<div class="control">
<div class="tags has-addons">
- <a class="tag is-medium" href="{{ "/tags/" | relLangURL }}{{ .Name | urlize }}/">{{ .Name }}</a>
+ <a class="tag is-medium" href="{{$ctx.Site.BaseURL}}{{ "/tags/" | relLangURL }}{{ .Name | urlize }}/">{{ .Name }}</a>
<span class="tag is-medium is-primary">
{{ .Count }}
</span>