Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pravin/hugo-theme-prav.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Rosenshein <leonrosn@amazon.com>2022-04-28 06:45:21 +0300
committerLeon Rosenshein <leonrosn@amazon.com>2022-04-28 06:45:21 +0300
commit2bb292891514a3cd5688987bba66f57d8458f7c5 (patch)
tree8ccf3b879ad777771f10c6c035bda18c30b5b3c9
parent02b710263ad3d10a6090e671b85fec2fef225565 (diff)
Fix image path
-rw-r--r--layouts/partials/header.html8
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 -}}