diff options
author | Eddie Webbinaro <ollitech@gmail.com> | 2022-05-15 20:21:21 +0300 |
---|---|---|
committer | Eddie Webbinaro <ollitech@gmail.com> | 2022-05-15 20:21:21 +0300 |
commit | 37734c92008a6ed1f93110c225a43ca885f86f6e (patch) | |
tree | c17e4b05f1e8c006366c8bbd06d1352b5ac2b570 | |
parent | d3d300cadfeef01843ebf6773fa858008753812f (diff) |
allow pages ot override the teaserimage
-rw-r--r-- | layouts/_default/baseof.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 710d8cc..762adc7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,12 @@ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>{{ .Site.Title }} | {{ .Title }}</title> <meta property="og:title" content="{{ .Site.Title }} | {{ .Title }}" /> - <meta property="og:image" content="{{ .Site.Params.profileImage | absURL }}" /> + + {{if isset .Params "featured_image" }} + <meta property="og:image" content="{{ index .Params "featured_image" }}" /> + {{ else }} + <meta property="og:image" content="{{ .Site.Params.profileImage | absURL }}" /> + {{ end }} <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{else}}{{ .Description }}{{ end }}"> <meta property="og:description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{else}}{{ .Description }}{{ end }}" /> <meta name="author" content="{{ .Site.Params.firstName }} {{ .Site.Params.lastName }}"> |