aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-07 03:58:40 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-07 03:58:40 +0200
commit750727091bdc7723c5e780bb9872c9b538314c3a (patch)
tree23c4592c38d1bf5b5a05e884a2e5dda6d178ef48 /layouts/partials/head.html
parent5e20b8d99cd4591cc9d066370139d210d673864c (diff)
downloadhugo-minimalist-theme-750727091bdc7723c5e780bb9872c9b538314c3a.tar.gz
hugo-minimalist-theme-750727091bdc7723c5e780bb9872c9b538314c3a.tar.bz2
hugo-minimalist-theme-750727091bdc7723c5e780bb9872c9b538314c3a.zip
Structured data instead of internal templates of social media
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html11
1 files changed, 4 insertions, 7 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index bd6d93f..3a569e7 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,19 +1,16 @@
<head>
<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" . }}
+ {{ partial "structured-data.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 }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
- {{ $title := print .Site.Title " | " .Title }}
- {{ 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>
+ <link rel="icon" href="/images/favicon.png">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
+
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
</head>