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

github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-05-08 19:47:39 +0300
committerHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-05-08 19:47:39 +0300
commite600c033c7543a14b6be75e86622525f8e821309 (patch)
tree7b10eaef7b4761cbb81d2a3f722519dc3c4f4d12
parentd8c006a4005e00b5d55a0cea501bd14f768e6d75 (diff)
Update sidebar order: abount, category, tag
-rw-r--r--layouts/partials/sidebar.html29
1 files changed, 12 insertions, 17 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index d8f3b31..768e824 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -2,32 +2,27 @@
{{ with ( .Site.GetPage "page" "about" ) }}
<h4><a href="{{ .RelPermalink }}">{{ .Title }}</a></h4>
{{ .Summary }}
- <hr />
- {{ end }}
- {{ if not .IsNode }}
- <h4><a href="{{ "/tags/" | relLangURL }}">Tags</a></h4>
- {{ with .Params.Tags }}
- <div>
- {{ range . }}
- <a class="badge badge-pill badge-secondary" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
- {{ end }}
- </div>
{{ end }}
<hr />
- {{ end }}
<h4><a href="{{ "/categories/" | relLangURL }}">Categories</a></h4>
- {{ with .Site.Taxonomies.categories }}
+ {{ with .Params.Categories }}
<div>
<ul>
- {{ range $key, $value := . }}
+ {{ range . }}
<li>
- <a href="{{ "/categories/" | relLangURL }}{{ $key | urlize }}">
- {{ $key | humanize }}
- <span class="badge badge-pill badge-light">{{ len $value }}</span>
- </a>
+ <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
+ <hr />
+ <h4><a href="{{ "/tags/" | relLangURL }}">Tags</a></h4>
+ {{ with .Params.Tags }}
+ <div>
+ {{ range . }}
+ <a class="badge badge-pill badge-secondary" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ </div>
+ {{ end }}
</div>