Browse Source

fixing category cloud links

master
jk 3 years ago
parent
commit
4318689097
  1. 2
      themes/nipponalba/layouts/_default/list.html
  2. 2
      themes/nipponalba/layouts/partials/aside.html

2
themes/nipponalba/layouts/_default/list.html

@ -27,7 +27,7 @@
{{if eq .Page.Permalink "https://sakino.kelbie.scot/category/"}}
<ul class="listing">
{{ range .Site.Taxonomies.category }}
{{if not (in (slice "1" "2" "3" "4" "5") .Page.Title )}}<li class="list-without-title"><a href="{{ .Page.Permalink }}/">{{ humanize .Page.Title }}</a></li>{{ end }}{{ end }}
{{if not (in (slice "1" "2" "3" "4" "5") .Page.Title )}}<li class="list-without-title"><a href="{{ .Page.Permalink }}">{{ humanize .Page.Title }}</a></li>{{ end }}{{ end }}
</ul>{{ end }}
</section>
</section>

2
themes/nipponalba/layouts/partials/aside.html

@ -47,7 +47,7 @@
{{ $weigth := div (sub (math.Log $count) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
{{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weigth) ) }}
<!--Current font size: {{$currentFontSize}}-->
{{if not (in (slice "1" "2" "3" "4" "5") $name)}}<a href="{{ "/category/" | relLangURL }}{{ $name | urlize }}" style="font-size:{{$currentFontSize}}{{$fontUnit}}">{{ $name }}</a>{{ end }}
{{if not (in (slice "1" "2" "3" "4" "5") $name)}}<a href="{{ "/category/" | relLangURL }}{{ $name | urlize }}/" style="font-size:{{$currentFontSize}}{{$fontUnit}}">{{ $name }}</a>{{ end }}
{{ end }}
</div>
{{ end }}

Loading…
Cancel
Save