mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Add og:image and update page titles
This commit is contained in:
@@ -10,6 +10,8 @@
|
|||||||
{{ $favIcon16 := resources.Get "favicon-16x16.png" }}
|
{{ $favIcon16 := resources.Get "favicon-16x16.png" }}
|
||||||
{{ $favIcon := resources.Get "favicon.ico" }}
|
{{ $favIcon := resources.Get "favicon.ico" }}
|
||||||
|
|
||||||
|
{{ $faceImage := resources.Get "images/big-face.webp" }}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@@ -31,6 +33,10 @@
|
|||||||
property="og:description"
|
property="og:description"
|
||||||
content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.defaultDescription }}{{ end }}"
|
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 }}">
|
<meta property="og:url" content="{{ .Page.Permalink }}">
|
||||||
{{ block "meta" . }}{{ end }}
|
{{ block "meta" . }}{{ end }}
|
||||||
|
|
||||||
@@ -51,7 +57,7 @@
|
|||||||
|
|
||||||
<title>
|
<title>
|
||||||
{{ block "title" . }}
|
{{ block "title" . }}
|
||||||
{{ .Site.Title }}
|
{{ .Page.Title }} | Hazem Krimi
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user