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

16 lines
566 B
HTML
Raw Normal View History

2018-09-20 01:43:46 +00:00
<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") }}
2018-12-14 17:05:23 +00:00
{{ $authorImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }}
2018-09-20 01:43:46 +00:00
<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>