Merge remote-tracking branch 'author-origin/master'
This commit is contained in:
commit
5d3433f25b
3 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue