revise about and copyright templates
This commit is contained in:
parent
0e9507228c
commit
8c62c7eb97
2 changed files with 21 additions and 0 deletions
15
layouts/partials/sidebar/about.html
Normal file
15
layouts/partials/sidebar/about.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<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>
|
6
layouts/partials/sidebar/copyright.html
Normal file
6
layouts/partials/sidebar/copyright.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<div class="copyright">
|
||||||
|
{{ with .Site.Params.copyright }}{{.|safeHTML}}{{ else }}© {{ now.Format "2006"}} {{.Site.Params.author}}.
|
||||||
|
<a href="https://creativecommons.org/licenses/by-sa/4.0">Some Rights Reserved</a>.
|
||||||
|
Built with <a href="https://gohugo.io">Hugo</a> ❤️ <a href="https://github.com/htr3n/hyde-hyde">hyde-hyde</a>.
|
||||||
|
{{end}}
|
||||||
|
</div>
|
Loading…
Reference in a new issue