Website-Redesign/layouts/partials/head.html

48 lines
2.6 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 }}
2020-09-05 03:39:54 -05:00
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<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 }}
2020-09-05 03:39:54 -05:00
<link rel="shortcut icon" href='{{ .Site.Params.favicon | default "/img/favicon.png" }}' type="image/x-icon" />
2020-08-24 01:48:03 -05:00
2020-09-05 03:39:54 -05:00
<title>
{{ if ne .Title .Site.Title }}
{{ .Title }} &ndash;
{{ end }}
{{ .Site.Title | default "Ficurinia" }}
</title>
<link href="/symbols-nerd-font/symbols-nerd-font.css" rel="stylesheet">
<link href="/jetbrains-mono/jetbrains-mono.css" rel="stylesheet">
{{ $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" . -}}
<meta property="og:site_name" content='{{ .Site.Title | default "Ficurinia" }}' />
{{ if .IsPage }}
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:type" content="article" />
<meta property="og:type:article:author" content="{{ .Site.Params.Author }}" />
<meta property="og:type:article:published_time" content='{{ .Date.Format "2006-01-02T15:04:05Z-0700" }}' />
{{ range .Params.tags }}
<meta property="og:type:article:tag" content="{{ . }}" />
{{ end }}
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:image" content='{{ if .Params.Image }}{{ .Params.Image | absURL }}{{ else }}{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}{{ end }}' />
<meta property="og:description" content="{{ .Summary }}" />
{{ else }}
<meta property="og:image" content='{{ .Site.Params.Logo | default "/img/icon.svg" | absURL }}' />
{{ end }}
2020-09-05 03:39:54 -05:00
</head>