refactors layouts for portfolio and sidebar

This commit is contained in:
Huy Tran 2018-07-25 12:26:05 +10:00
parent f90b3ebbaf
commit 435636d745
2 changed files with 6 additions and 9 deletions

View file

@ -8,9 +8,9 @@
{{ with .Site.Params.authorimage }}
{{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }}
{{ $authorImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }}
<p>
<div>
<img src="{{$authorImage}}" alt="Author Image" class="img--circle img--headshot element--center">
</p>
</div>
{{ end }}
<p class="site__description">
{{ with .Site.Params.description }} {{.}} {{ else }} Your site's description {{end}}