mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-10-04 08:46:00 +00:00
port to gitlab.
This commit is contained in:
15
themes/custom/layouts/partials/sidebar-taxonomy.html
Normal file
15
themes/custom/layouts/partials/sidebar-taxonomy.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ range $key, $value := .Site.Taxonomies }}
|
||||
<div class="sidebar-{{ $key | singularize | lower }}">
|
||||
<hr>
|
||||
<h5>
|
||||
<a href="/{{$key}}/">{{ T ($key | singularize) }}</a>
|
||||
</h5>
|
||||
|
||||
{{ range $k, $v := first 10 $value.ByCount }}
|
||||
<a href="{{ $.Site.BaseURL}}/{{ $key }}/{{ $v.Name | urlize }}" class="taxonomy-name">
|
||||
{{ $v.Name }}
|
||||
<span class="taxonomy-counts">{{ len $v.Pages }}</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
Reference in New Issue
Block a user