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/partials/posts.html')
-rw-r--r--layouts/partials/posts.html23
1 files changed, 13 insertions, 10 deletions
diff --git a/layouts/partials/posts.html b/layouts/partials/posts.html
index 3c6512f..6b3aed5 100644
--- a/layouts/partials/posts.html
+++ b/layouts/partials/posts.html
@@ -47,11 +47,11 @@
</header>
<div class="card-content">
<div class="content">
- {{ range $name, $taxonomy := .Site.Taxonomies.categories }}
+ {{ range .Site.Taxonomies.categories.ByCount }}
<div class="container" style="margin-bottom: 0.5rem">
- <a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}">{{ $name }}</a>
+ <a href="{{ "/categories/" | relLangURL }}{{ .Name | urlize }}">{{ .Name }}</a>
<span class="tag is-pulled-right">
- {{ $taxonomy.Count }}
+ {{ .Count }}
</span>
</div>
{{ end }}
@@ -69,14 +69,17 @@
</p>
</header>
<div class="card-content">
- <div class="content">
- <div class="tags">
- {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
- <span class="tag">
- <a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}/">{{ $name }}</a>
- </span>
- {{ end }}
+ <div class="field is-grouped is-grouped-multiline">
+ {{ range .Site.Taxonomies.tags.ByCount }}
+ <div class="control">
+ <div class="tags has-addons">
+ <a class="tag" href="{{ "/tags/" | relLangURL }}{{ .Name | urlize }}/">{{ .Name }}</a>
+ <span class="tag">
+ {{ .Count }}
+ </span>
+ </div>
</div>
+ {{ end }}
</div>
</div>
</div>