Website-Redesign/layouts/partials/head.html

39 lines
1.8 KiB
HTML
Raw Normal View History

2020-09-05 03:39:54 -05:00
<head>
2021-01-19 03:08:51 -06:00
{{ if .Site.Params.forceRedirect }}
<script>
if (location.host != new URL("{{ .Site.BaseURL }}").host) location.href = "{{ .Site.BaseURL }}"
</script>
{{ end }}
2021-12-21 02:25:48 -06:00
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
2020-08-24 01:48:03 -05:00
2020-09-05 03:39:54 -05:00
{{ if .OutputFormats.Get "RSS" }}
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
2020-08-24 01:48:03 -05:00
{{ end }}
{{- partial "head_icons.html" . -}}
2020-08-24 01:48:03 -05:00
2020-09-05 03:39:54 -05:00
<title>
{{ if and (.Title) (ne .Title .Site.Title) }}
2020-09-05 03:39:54 -05:00
{{ .Title }} &ndash;
{{ end }}
{{ .Site.Title | default "Ficurinia" }}
</title>
2021-12-21 03:31:52 -06:00
<link href="/symbols-nerd-font/symbols-nerd-font.css" rel="stylesheet" />
<link href="/jetbrains-mono/jetbrains-mono.css" rel="stylesheet" />
2021-12-25 07:59:31 -06:00
{{ if and site.Params.cactusCommentsSiteName (.Params.comments | default true) }}
<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
{{ end }}
2020-09-05 03:39:54 -05:00
{{ $style := resources.Get "/scss/style.scss" | resources.ExecuteAsTemplate "/scss/style.scss" . | resources.ToCSS (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") | resources.Fingerprint "sha512" }}
<link type=text/css rel=stylesheet href={{ $style.Permalink }} integrity="{{ $style.Data.Integrity }}" />
2021-01-02 07:08:21 -06:00
{{- partial "inject/head.html" . -}}
{{- partial "head_meta_seo.html" . -}}
{{- partial "head_meta_opengraph.html" . -}}
{{- partial "head_meta_twitter.html" . -}}
2021-12-21 03:31:52 -06:00
<link rel="manifest" href="/manifest/index.json" />
2020-09-05 03:39:54 -05:00
</head>