Fix the single template to use the authors avatar correctly

This commit is contained in:
as027811 2020-10-18 21:36:39 -04:00 committed by Emruz Hossain
parent 47c4ef0251
commit dda04c533e
4 changed files with 18 additions and 13 deletions

View file

@ -15,12 +15,12 @@
{{ $sections = (index .Site.Data .Site.Language.Lang).sections }}
{{ end }}
{{ $backgroundImage:= "assets/images/default-background.jpg" }}
{{ $backgroundImage:= "/assets/images/default-background.jpg" }}
{{ if .Site.Params.background }}
{{ $backgroundImage = .Site.Params.background }}
{{ end }}
{{ $authorImage:= "assets/images/default-avatar.png" }}
{{ $authorImage:= "/assets/images/default-avatar.png" }}
{{ if $author.image }}
{{ $authorImage = $author.image }}
{{ end }}