website-theme/layouts/partials/head.html

72 lines
3.2 KiB
HTML
Raw Normal View History

2022-02-15 01:13:11 -05:00
2018-09-23 07:11:35 -04:00
<head>
2022-02-15 01:13:11 -05:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
2019-03-23 03:18:03 -04:00
<title>
2022-02-15 01:13:11 -05:00
{{- if eq .Title .Site.Title -}}
{{ .Site.Title }}
{{- else -}}
{{ .Title }} - {{ .Site.Title }}
{{- end -}}
2019-03-23 03:18:03 -04:00
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-02-15 01:13:11 -05:00
<meta name="supported-color-schemes" content="light dark" />
2019-08-13 15:00:20 -04:00
<meta name="author" content="{{ .Site.Params.Author }}" />
2022-02-15 01:13:11 -05:00
<meta name="robots" content="index,follow" />
2020-12-22 10:20:17 -05:00
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/{{ .Site.Params.favicon }}">
2018-09-24 12:11:11 -04:00
<!-- Identities -->
2022-02-15 01:13:11 -05:00
{{- range .Site.Params.identities -}}
<link href="{{.}}" rel="me"/>
{{ end -}}
<!-- Webmentions -->
<link rel="webmention" href="https://webmention.io/brandonrozek.com/webmention" />
<link rel="pingback" href="https://webmention.io/brandonrozek.com/xmlrpc" />
2022-02-15 01:13:11 -05:00
<!-- RSS Links -->
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
2022-02-15 01:13:11 -05:00
<!-- CSS -->
{{- $style := resources.Get "css/style.css" -}}
{{- $markdown := resources.Get "css/markdown.css" -}}
{{- $fontawesome := resources.Get "css/fontawesome.css" -}}
{{- $syntaxHighlight := resources.Get "css/syntax-highlight.css" -}}
2020-12-22 10:20:17 -05:00
{{ $css := slice $style $markdown $fontawesome $syntaxHighlight | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
2020-03-22 16:09:31 -04:00
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
2022-02-15 01:13:11 -05:00
{{- $styleDark := resources.Get "css/style-dark.css" -}}
{{- $markdownDark := resources.Get "css/markdown-dark.css" -}}
2020-12-22 10:20:17 -05:00
{{ $cssDark := slice $styleDark $markdownDark | resources.Concat "css/style-dark.css" | resources.Minify | resources.Fingerprint }}
2020-03-22 16:09:31 -04:00
<link rel="stylesheet" href="{{ $cssDark.Permalink }}" media="(prefers-color-scheme: dark)" integrity="{{ $cssDark.Data.Integrity }}">
2020-12-22 10:20:17 -05:00
<!-- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> -->
2018-09-24 12:11:11 -04:00
2019-03-23 03:18:03 -04:00
<!-- custom css -->
2022-02-15 01:13:11 -05:00
{{- range .Site.Params.custom_css -}}
<link rel="stylesheet" href="{{ . }}">
{{ end -}}
2018-09-24 12:11:11 -04:00
2019-03-23 03:18:03 -04:00
{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/schema.html" . -}}
2020-02-26 06:00:39 -05:00
<!-- {{- template "_internal/twitter_cards.html" . -}} -->
{{- partial "twitter_cards.html" . -}}
2018-09-24 12:11:11 -04:00
2019-03-23 03:18:03 -04:00
<!-- Polyfill for old browsers -->
{{ `<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->` | safeHTML }}
2018-09-24 12:11:11 -04:00
2019-03-23 03:18:03 -04:00
{{ `<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->` | safeHTML }}
2018-09-24 12:11:11 -04:00
2020-12-22 10:20:17 -05:00
<!-- MathJax -->
2022-02-15 01:13:11 -05:00
{{- if or .Params.math .Site.Params.math -}}
{{ partial "mathjax_support.html" . }}
{{- end -}}
2018-09-23 07:11:35 -04:00
</head>