Add og:image and update page titles

This commit is contained in:
Hazem Krimi
2023-11-24 14:17:16 +01:00
parent 6245182727
commit 578bc39d47
+7 -1
View File
@@ -10,6 +10,8 @@
{{ $favIcon16 := resources.Get "favicon-16x16.png" }}
{{ $favIcon := resources.Get "favicon.ico" }}
{{ $faceImage := resources.Get "images/big-face.webp" }}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -31,6 +33,10 @@
property="og:description"
content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.defaultDescription }}{{ end }}"
>
<meta
property="og:image"
content="{{ $faceImage.Permalink }}"
>
<meta property="og:url" content="{{ .Page.Permalink }}">
{{ block "meta" . }}{{ end }}
@@ -51,7 +57,7 @@
<title>
{{ block "title" . }}
{{ .Site.Title }}
{{ .Page.Title }} | Hazem Krimi
{{ end }}
</title>