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

34 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 }}">
2018-07-20 20:32:00 +00:00
<div class="sidebar-about">
2018-07-26 07:51:50 +00:00
<span class="site__title">
2018-07-20 20:32:00 +00:00
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
2018-07-26 07:51:50 +00:00
</span>
2018-07-16 03:22:00 +00:00
{{ with .Site.Params.authorimage }}
2018-07-21 07:08:41 +00:00
{{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }}
{{ $authorImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }}
2018-07-26 07:51:50 +00:00
<div class="author-image">
2018-07-21 07:08:41 +00:00
<img src="{{$authorImage}}" alt="Author Image" class="img--circle img--headshot element--center">
</div>
2018-07-20 20:32:00 +00:00
{{ end }}
<p class="site__description">
{{ with .Site.Params.description }} {{.}} {{ else }} Your site's description {{end}}
</p>
</div>
2018-07-10 01:41:30 +00:00
{{ partial "sidebar/menu.html" . }}
<p>
2018-07-10 01:41:30 +00:00
{{ partial "sidebar/social.html" . }}
</p>
2018-07-21 07:08:41 +00:00
<p class="copyright">
{{ with .Site.Params.copyright }}{{.|safeHTML}}{{ else }}&copy; {{ now.Format "2006"}} {{.Site.Params.author}}.
2018-07-16 03:22:00 +00:00
<a href="https://creativecommons.org/licenses/by-sa/4.0">Some Rights Reserved</a>.
<br/>Built with
2018-07-21 07:08:41 +00:00
<a href="https://gohugo.io">Hugo</a> ❤️ <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.
{{end}}
</p>
</div>
<div>
</div>
</div>