Merge remote-tracking branch 'author-origin/master'

This commit is contained in:
Pau Trepat Segura 2020-06-25 01:35:04 +02:00
commit 5d3433f25b
3 changed files with 7 additions and 1 deletions

View file

@ -51,7 +51,7 @@
Toha
</a>
</div>
<div class="col-md-4">© 2019 Copyright.</div>
<div class="col-md-4">© 2020 Copyright.</div>
<div class="col-md-4">
Powered by <a href="https://gohugo.io/">Hugo
<img

View file

@ -1,4 +1,7 @@
{{ $authorImage:= "/assets/images/default-avatar.png"}}
{{ if .Site.Data.site.author}}
{{ $authorImage = .Site.Data.site.author.image | relURL }}
{{ end}}
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
{{ with .Params.author }}
{{ if .image }}

View file

@ -1,4 +1,7 @@
{{ $authorName:= "John Doe"}}
{{ if .Site.Data.site.author}}
{{ $authorName = .Site.Data.site.author.name }}
{{ end}}
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
{{ with .Params.author }}
{{ if .name }}