Update get-author-name.html

Changed default to the parameters in Config file for consistency
This commit is contained in:
Cristian Marquez Russo 2020-08-09 16:15:41 +12:00 committed by GitHub
parent 5f48a5bacb
commit bce35a80e1
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}}
{{ $authorName = .Site.Data.site.author.name }}
{{ end}}