Browse Source

tweaks

master
Jon Kelbie 5 months ago
parent
commit
937d153adc
  1. 4
      themes/nipponalba/layouts/partials/aside.html
  2. 2
      themes/nipponalba/static/css/style.css

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

@ -34,7 +34,7 @@
<span class="panel-heading"><a href="{{ "/category/" | relLangURL }}">Categories</a></span>
{{ if not (eq (len $.Site.Taxonomies.category) 0) }}
{{ $fontUnit := "rem" }}
{{ $largestFontSize := 1.6 }}
{{ $largestFontSize := 1.5 }}
{{ $smallestFontSize := 1.0 }}
{{ $max := len (index $.Site.Taxonomies.category.ByCount 0).Pages }}
{{ $min := len (index $.Site.Taxonomies.category.ByCount.Reverse 0).Pages }}
@ -44,7 +44,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 "food-vegan" "alcohol" "covid" "death" "5") $name)}}<a href="{{ "/category/" | relLangURL }}{{ $name | urlize }}/" style="font-size:{{$currentFontSize}}{{$fontUnit}}">{{ .Page.Title }}</a>{{ end }}
{{if not (in (slice "food-vegan" "alcohol" "covid" "death" "5" "food-mention") $name)}}<a href="{{ "/category/" | relLangURL }}{{ $name | urlize }}/" style="font-size:{{$currentFontSize}}{{$fontUnit}}">{{ .Page.Title }}</a>{{ end }}
{{ end }}
</div>
{{ end }}

2
themes/nipponalba/static/css/style.css

@ -182,7 +182,7 @@ html { font-family: 'Inter', sans-serif;}
--dark-link:#e6ffff;
--dark-text:#87d5ff;
--dark-bg:#5c5458;
--dark-opacity: 0.75;
--dark-opacity: 1;
--light-text:#084c72;
--light-bg:#f0f2d7;
--light-link:#00569b;

Loading…
Cancel
Save