redstrate.com/themes/red/layouts/partials/head.html

36 lines
1.5 KiB
HTML
Raw Normal View History

2022-08-24 10:26:29 -04:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-08-24 10:26:29 -04:00
<meta name="theme-color" content="#fffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="rgb(51 65 85)" media="(prefers-color-scheme: dark)">
{{ if .IsHome }}
<meta name="description" content="{{ $.Site.Params.description }}">
<title>{{.Site.Title}}</title>
{{ else }}
<title>{{.Site.Title}} / {{ .Title }}</title>
<meta name="description" content="{{ .Summary }}">
{{ end }}
{{ if and (hugo.IsProduction) (eq .Site.BaseURL "https://redstrate.com/") }}
<script async defer data-website-id="2dd74b65-a1b8-41fb-b060-1a062490a823" src="https://salamis.ryne.moe/euripides.js" data-domains="redstrate.com" data-do-not-track="true"></script>
{{ end }}
{{ if .IsHome }}
<link href="/blog/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }} / Blog">
{{ else }}
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }} / {{ $.Title }}">
{{ end }}
{{ end }}
2022-09-26 11:06:53 -04:00
2022-08-24 10:26:29 -04:00
{{ $style := resources.Get "css/site.css" }}
{{ if hugo.IsProduction }}
{{ $style = $style | minify | fingerprint | resources.PostProcess }}
{{ end }}
2022-08-24 10:26:29 -04:00
<link href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" rel="stylesheet" >
2022-10-27 10:56:25 -04:00
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
2022-09-26 11:06:53 -04:00
</head>