diff options
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2417005..1b7f72a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -46,10 +46,10 @@ {{ end -}} {{ $imageLink := "" -}} - {{ if .Description -}} - {{$imageLink = .Description -}} + {{ if .Params.previewimage -}} + {{$imageLink = .Params.previewimage -}} {{ else -}} - {{$imageLink = .Site.Params.Tagline -}} + {{$imageLink = .Site.Params.authorImgPath -}} {{ end -}} {{ "<!-- OpenGraph/Twitter Specific Stuff-->" | safeHTML }} @@ -59,7 +59,7 @@ <meta property="og:image" content="{{ $imageLink }}"> <meta name="author" content="{{ .Site.Params.Author }}"> - {{- if not .IsHome -}} + {{ if not .IsHome -}} <meta property="og:title" content="{{ .Title }}"> {{ end -}} |