Compare commits
2 Commits
e74e82a6b7
...
0ca1bd9157
Author | SHA1 | Date | |
---|---|---|---|
0ca1bd9157 | |||
85df577a19 |
@ -5,34 +5,37 @@
|
|||||||
<title>{{ if not .IsHome }}{{with .Title }}{{ . }} · {{ end }}{{ end }}{{ .Site.Title }}</title>
|
<title>{{ if not .IsHome }}{{with .Title }}{{ . }} · {{ end }}{{ end }}{{ .Site.Title }}</title>
|
||||||
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
|
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
|
||||||
{{ if (fileExists "static/apple-touch-icon.png") -}}
|
{{ if (fileExists "static/apple-touch-icon.png") -}}
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}">
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if (fileExists "static/favicon-32x32.png") -}}
|
{{ if (fileExists "static/favicon-32x32.png") -}}
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}">
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if (fileExists "static/favicon-16x16.png") -}}
|
{{ if (fileExists "static/favicon-16x16.png") -}}
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}">
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if (fileExists "static/site.webmanifest") -}}
|
{{ if (fileExists "static/site.webmanifest") -}}
|
||||||
<link rel="manifest" href="{{ "/site.webmanifest" | absURL }}">
|
<link rel="manifest" href="{{ "/site.webmanifest" | absURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if (fileExists "static/safari-pinned-tab.svg") -}}
|
{{ if (fileExists "static/safari-pinned-tab.svg") -}}
|
||||||
<link rel="mask-icon" href="{{ "/safari-pinned-tab.svg" | absURL }}" color="#5bbad5">
|
<link rel="mask-icon" href="{{ "/safari-pinned-tab.svg" | absURL }}" color="#5bbad5">
|
||||||
|
{{ end -}}
|
||||||
|
{{ if isset $.Site.Params "mastodon_profile_link" -}}
|
||||||
|
<link rel="me" href="{{- $.Site.Params.mastodon_profile_link -}}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ if (fileExists "layouts/partials/meta-tags.html") -}}
|
{{ if (fileExists "layouts/partials/meta-tags.html") -}}
|
||||||
{{ partial "meta-tags.html" . }}
|
{{ partial "meta-tags.html" . }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with resources.Get "css/katex.css" -}}
|
{{ with resources.Get "css/katex.css" -}}
|
||||||
<link href="{{ .Permalink }}" rel="stylesheet">
|
<link href="{{ .Permalink -}}" rel="stylesheet">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
|
{{ $normalizeStyle := resources.Get "css/normalize.css" -}}
|
||||||
{{ $mainStyle := resources.Get "css/style.css" }}
|
{{ $mainStyle := resources.Get "css/style.css" -}}
|
||||||
{{ $overrideStyle := resources.Get "css/override.css" }}
|
{{ $overrideStyle := resources.Get "css/override.css" -}}
|
||||||
{{ $printStyle := resources.Get "css/print.css" }}
|
{{ $printStyle := resources.Get "css/print.css" -}}
|
||||||
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle $printStyle | resources.Concat "css/concated.css" | minify }}
|
{{ $style := slice $normalizeStyle $mainStyle $overrideStyle $printStyle | resources.Concat "css/concated.css" | minify -}}
|
||||||
<link href="{{ $style.Permalink }}" rel="stylesheet">
|
<link href="{{ $style.Permalink }}" rel="stylesheet">
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with resources.GetMatch .Site.Params.bgimg -}}
|
{{ with resources.GetMatch .Site.Params.bgimg -}}
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
Reference in New Issue
Block a user