mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 22:12:10 +00:00
712ca3737c
Comply with the upcoming article on best practices for textual websites.
29 lines
1.2 KiB
HTML
29 lines
1.2 KiB
HTML
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
{{ with .Site.Params.description -}}
|
|
<meta name="description" content="{{ . }}">
|
|
{{ end }}
|
|
{{ printf `<link rel="shortcut icon" href="%s">` ("favicon.png" | absURL) | safeHTML }}
|
|
<link href="{{ .Site.BaseURL }}posts/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
|
|
|
{{ $resources := slice -}}
|
|
|
|
{{ $resources = $resources | append (resources.Get "/css/main.css") -}}
|
|
|
|
{{ $resources = $resources | append (resources.Get "/css/max770px.css") -}}
|
|
|
|
{{ $dark := .Site.Params.dark | default "auto" -}}
|
|
{{ if not (eq $dark "off") -}}
|
|
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
|
|
{{ end -}}
|
|
|
|
{{ if .Site.Params.highlight -}}
|
|
{{ $resources = $resources | append (resources.Get "css/syntax.css") -}}
|
|
{{ end -}}
|
|
|
|
{{ $css := $resources | resources.Concat "css/style.css" | minify }}
|
|
{{ printf `<link rel="stylesheet" href="%s">` $css.RelPermalink | safeHTML }}
|
|
|
|
<title>{{ .Title }}</title>
|
|
</head>
|