Browse Source

minor changes

master
jk 3 years ago
parent
commit
3ba58f9085
  1. 2
      themes/nipponalba/layouts/partials/aside.html
  2. 2
      themes/nipponalba/layouts/partials/taxonomy/categories.html

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}}">{{ .Page.Title }}</a>{{ end }}
{{ end }}
</div>
{{ end }}

2
themes/nipponalba/layouts/partials/taxonomy/categories.html

@ -1,6 +1,6 @@
<ul class="categories">
{{- range $index, $el := . -}}
{{if not (in (slice "1" "2" "3" "4" "5") .)}}<li><a class="category p-category" href="{{ ( printf "category/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a></li>{{ end }}
{{if not (in (slice "1" "2" "3" "4" "5") .)}}<li><a class="category p-category" href="{{ ( printf "category/%s/" ( . | urlize ) ) | relLangURL }}">{{ humanize . }}</a></li>{{ end }}
{{- end -}}
</ul>
Loading…
Cancel
Save