Update get-author-name.html (#61)

Changed default to the parameters in Config file for consistency
This commit is contained in:
Cristian Marquez Russo 2020-08-28 00:20:49 +12:00 committed by GitHub
parent a148d6923c
commit 8f2f18b34c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{{ $authorName:= "John Doe"}} {{ $authorName:= .Site.Params.author.name }}
{{ if .Site.Data.site.author}} {{ if .Site.Data.site.author}}
{{ $authorName = .Site.Data.site.author.name }} {{ $authorName = .Site.Data.site.author.name }}
{{ end}} {{ end}}