2020-11-03 23:46:20 +00:00
|
|
|
<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 }}
|
2020-11-25 08:24:45 +00:00
|
|
|
<link href="{{ .Site.BaseURL }}posts/index.xml" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}"/>
|
|
|
|
<link rel="canonical" href="https://seirdy.one{{ .RelPermalink }}"/>
|
2020-11-03 23:46:20 +00:00
|
|
|
|
|
|
|
{{ $resources := slice -}}
|
|
|
|
|
2020-11-19 01:02:24 +00:00
|
|
|
{{ $resources = $resources | append (resources.Get "/css/main.css") -}}
|
2020-11-03 23:46:20 +00:00
|
|
|
|
2020-11-23 23:47:27 +00:00
|
|
|
{{ $resources = $resources | append (resources.Get "/css/max770px.css") -}}
|
2020-11-03 23:46:20 +00:00
|
|
|
|
|
|
|
{{ $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>
|