source for sakino.kelbie.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

57 lines
3.0 KiB

<section class="h-card p-author">
<img class="u-photo" src="{{ .Site.Params.ProfilePicture }}" alt="profile picture"><br/>
<span rel="author" class="title p-name" rel="me">{{ .Site.Params.Author }}</span><br/>
<ul class="social-links">
{{ range $item := .Site.Params.socialIcons }}
<a href="{{ $item.url | safeURL }}" rel="me" >
<i class="fa {{ $item.icon }}" aria-hidden="true" title="{{ $item.title }}"></i>
</a>
{{ end }}
</ul>
<section class="description">
<h4 class="p-note">{{ .Site.Params.description }}<br/>
Pronouns: <span class="p-x-pronoun-nominative">she</span>/<span class="p-x-pronoun-oblique">her</span>/<span class="p-x-pronoun-posessive">hers</span></h4>
<section class="interests">
<span class="p-category">Education</span>
<span class="p-category">Parenting</span>
<span class="p-category">Language</span>
<span class="p-category">Exercise</span>
<span class="p-category">Environment</span>
<span class="p-category">Food</span>
<span class="p-category">Community</span>
<span class="p-category">Minimalism</span>
<span class="p-category">Materialism</span></section>
</section>
<section style="display:none">
<span class="p-country-name">Scotland or Japan</span>
<a class="u-email" rel="me" href="mailto:sakino@kelbie.scot"></a>
<a class="u-url u-uid" rel="me" href="https://sakino.kelbie.scot"></a>
</section>
</section>
<hr/>
<section class="panel panel-default">
<div class="panel-heading">
<b>Categories</b>
<div style="float: right"><a href="{{ "/category/" | relLangURL }}">- full list -</a></div>
</div>
{{ if not (eq (len $.Site.Taxonomies.category) 0) }}
{{ $fontUnit := "rem" }}
{{ $largestFontSize := 1.6 }}
{{ $smallestFontSize := 1.0 }}
{{ $max := len (index $.Site.Taxonomies.category.ByCount 0).Pages }}
{{ $min := len (index $.Site.Taxonomies.category.ByCount.Reverse 0).Pages }}
<div id="category-cloud">
{{ range $name, $taxonomy := $.Site.Taxonomies.category }}
{{ $count := len $taxonomy.Pages }}
{{ $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}}">{{ .Page.Title }}</a>{{ end }}
{{ end }}
</div>
{{ end }}
</section>
<hr/>
<section class="site-info">&copy; {{ now.Format "2006"}} | <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a> | <a href="{{ .Permalink }}index.xml"><i class="fa fa-rss fa-fw" aria-hidden="true" title="Blog RSS feed"></i></a><br/>
Made with ❤ and <a href="https://gohugo.io/">Hugo</a> <br/>by <a href="https://jon.kelbie.scot" target="_blank">Jon Kelbie</a><br/><b>Inter</b> font by <a href="https://rsms.me/" target="_blank">Rasmus</a></section>