34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<!-- Sidebar -->
|
|
<div class="sidebar">
|
|
<div class="container {{ with .Site.Params.sidebarSticky }}sidebar-sticky{{ end }}">
|
|
<div class="sidebar-about">
|
|
<span class="site__title">
|
|
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
|
</span>
|
|
{{ with .Site.Params.authorimage }}
|
|
{{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }}
|
|
{{ $authorImage := (printf "%s/%s" $.Site.BaseURL $strippedSlash) }}
|
|
<div class="author-image">
|
|
<img src="{{$authorImage}}" alt="Author Image" class="img--circle img--headshot element--center">
|
|
</div>
|
|
{{ end }}
|
|
{{ with .Site.Params.social.email}}
|
|
<div class="author-image">
|
|
<img src="https://www.gravatar.com/avatar/{{md5 .}}?s=240&d=mp" class="img--circle img--headshot element--center" alt="gravatar">
|
|
</div>
|
|
{{ end }}
|
|
<p class="site__description">
|
|
{{ with .Site.Params.description }} {{.}} {{end}}
|
|
</p>
|
|
</div>
|
|
<div class="collapsible-menu">
|
|
<input type="checkbox" id="menuToggle">
|
|
<label for="menuToggle">{{ .Site.Title }}</label>
|
|
<div class="menu-content">
|
|
{{ partial "sidebar/menu.html" . }}
|
|
{{ partial "sidebar/social.html" . }}
|
|
</div>
|
|
</div>
|
|
{{ partial "sidebar/copyright.html" . }}
|
|
</div>
|
|
</div>
|