summaryrefslogtreecommitdiff
path: root/layouts/partials/head/meta.html
diff options
context:
space:
mode:
authorArne Rief <riearn@proton.me>2025-08-08 20:50:19 +0200
committerArne Rief <riearn@proton.me>2025-08-08 20:50:19 +0200
commit1bf4d8aca6f81f2dddd0262e74b278cd9985b53d (patch)
tree9c4168e894bc52595dadd2d99b29305473f2ebcc /layouts/partials/head/meta.html
initial commit, basic setup
Diffstat (limited to 'layouts/partials/head/meta.html')
-rw-r--r--layouts/partials/head/meta.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html
new file mode 100644
index 0000000..d0358a1
--- /dev/null
+++ b/layouts/partials/head/meta.html
@@ -0,0 +1,22 @@
+<!-- Basic Meta -->
+<meta name="author" content="{{ site.Params.author.name | default site.Title }}">
+<meta name="robots" content="index, follow">
+
+<!-- Open Graph (OG) -->
+<meta property="og:title" content="{{ .Title | default site.Title }}">
+<meta property="og:description" content="{{ .Description | default .Summary }}">
+<meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}">
+<meta property="og:url" content="{{ .Permalink }}">
+<meta property="og:site_name" content="{{ site.Title }}">
+{{- with .Params.images }}
+ <meta property="og:image" content="{{ (index . 0) | absURL }}">
+{{- end }}
+
+<!-- Twitter Card -->
+<meta name="twitter:card" content="summary_large_image">
+<meta name="twitter:title" content="{{ .Title | default site.Title }}">
+<meta name="twitter:description" content="{{ .Description | default .Summary }}">
+{{- with .Params.images }}
+ <meta name="twitter:image" content="{{ (index . 0) | absURL }}">
+{{- end }}
+