hugo-theme-hyde-hyde/layouts/partials/header.html
Silvano Cerza 4faf3de554 Add canonical URL link in header.html
By default the page permalink is used, if necessary a custom
canonicalUrl parameter can be set in a page front matter.
2021-04-16 16:45:27 +02:00

20 lines
914 B
HTML

<head>
<link href="https://gmpg.org/xfn/11" rel="profile">
{{ if .Params.canonicalUrl }}
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
{{ else }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
{{ partial "header/meta.html" . }}
{{ partial "header/styles.html" . }}
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->` | safeHTML }}
{{ "<!-- Icons -->" | safeHTML }}
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="/favicon.png">
{{ partial "header/feeds.html" . }}
{{ partial "header/custom.html" }}
</head>