aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-07 02:37:36 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-07 02:37:36 +0200
commit5e20b8d99cd4591cc9d066370139d210d673864c (patch)
treea17021b68f31b3d5ccb488e057dc7aa7942ce518 /layouts/partials/head.html
parentcd710363419f5144062707e8cd170278052924fa (diff)
downloadhugo-minimalist-theme-5e20b8d99cd4591cc9d066370139d210d673864c.tar.gz
hugo-minimalist-theme-5e20b8d99cd4591cc9d066370139d210d673864c.tar.bz2
hugo-minimalist-theme-5e20b8d99cd4591cc9d066370139d210d673864c.zip
metadata for social media
I must here also change how the page image is stored
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 7e88275..bd6d93f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,6 +2,9 @@
<meta charset="utf-8">
<link rel="icon" href="/images/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
+{{ template "_internal/twitter_cards.html" . }}
+{{ template "_internal/opengraph.html" . }}
+
{{ with resources.Get "scss/style.scss" | resources.ToCSS (dict "includePaths" (slice "node_modules") "targetPath" "css/style.css") | resources.Minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" type="text/css" media="screen" />
{{ end }}
@@ -10,4 +13,7 @@
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<title>{{ $title }}</title>
+{{ range .AlternativeOutputFormats -}}
+{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+{{ end -}}
</head>