hugo-theme-hyde-hyde/layouts/partials/sidebar.html

35 lines
1.3 KiB
HTML
Raw Normal View History

2018-07-16 03:22:00 +00:00
<!-- 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">
2018-10-05 22:32:47 +00:00
<img src="{{$authorImage}}" alt="Author Image" class="img--circle img--headshot element--center">
</div>
{{ end }}
2018-11-22 20:37:00 +00:00
{{ 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>
2018-09-18 05:20:12 +00:00
<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>
2018-10-05 22:32:47 +00:00
{{ partial "sidebar/copyright.html" . }}
</div>
</div>