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
|
Toha
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">© 2019 Copyright.</div>
|
<div class="col-md-4">© 2020 Copyright.</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
Powered by <a href="https://gohugo.io/">Hugo
|
Powered by <a href="https://gohugo.io/">Hugo
|
||||||
<img
|
<img
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{{ $authorImage:= "/assets/images/default-avatar.png"}}
|
{{ $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" }}
|
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
|
||||||
{{ with .Params.author }}
|
{{ with .Params.author }}
|
||||||
{{ if .image }}
|
{{ if .image }}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{{ $authorName:= "John Doe"}}
|
{{ $authorName:= "John Doe"}}
|
||||||
|
{{ if .Site.Data.site.author}}
|
||||||
|
{{ $authorName = .Site.Data.site.author.name }}
|
||||||
|
{{ end}}
|
||||||
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
|
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
|
||||||
{{ with .Params.author }}
|
{{ with .Params.author }}
|
||||||
{{ if .name }}
|
{{ if .name }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue