29 lines
1.1 KiB
HTML
29 lines
1.1 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 }}
|
|
<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>
|