redstrate.com/themes/red/layouts/partials/head.html
Joshua Goins 464b5d4406
All checks were successful
Deploy / Deploy Website (push) Successful in 31s
Update favicon, add script to generate it in the future
2025-04-10 17:31:24 -04:00

54 lines
2.1 KiB
HTML

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ if .IsHome }}
<meta name="description" content="{{ $.Site.Params.description }}">
<title>{{.Site.Title}}</title>
{{ else }}
<title>{{ .Title }}</title>
{{ if .Summary }}
<meta name="description" content="{{ .Summary }}">
{{ else }}
<meta name="description" content="{{ .Title }}">
{{ end }}
{{ end }}
<link href="/blog/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Params.author }}'s blog">
<link href="/art/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Params.author }}'s art">
{{ $style := resources.Get "css/site.css" }}
{{ if hugo.IsProduction }}
{{ $style = $style | minify | fingerprint | resources.PostProcess }}
{{ end }}
<link href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" rel="stylesheet">
<link rel="shortcut icon" href="/favicon.ico?v=4" type="image/x-icon">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=3">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=3">
<meta name="robots" content="noai">
<meta name="fediverse:creator" content="{{ $.Site.Params.fediverse_url }}" />
{{ if .Params.nsfw }}
<meta name="robots" content="noindex">
<meta name="rating" content="adult">
{{ end }}
<meta name="author" content="{{ $.Site.Params.author }}">
<meta name="creator" content="{{ $.Site.Params.author }}">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
{{ with .Params.tags }}
{{ $tags := delimit . "," }}
<meta name="keywords" content="{{ $tags }}">
{{ end }}
{{ with .Params.arttags }}
{{ $tags := delimit . "," }}
<meta name="keywords" content="{{ $tags }}">
{{ end }}
<meta name="color-scheme" content="dark light">
{{ partial "opengraph.html" . }}
</head>