Selaa lähdekoodia

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

Changed default to the parameters in Config file for consistency
Cristian Marquez Russo 4 vuotta sitten
vanhempi
commit
8f2f18b34c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      layouts/partials/helpers/get-author-name.html

+ 1 - 1
layouts/partials/helpers/get-author-name.html

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