This commit is contained in:
2025-07-25 23:26:00 +02:00
committed by GitHub
parent 1224b6f67c
commit fd50a946d0

View File

@@ -1,6 +1,6 @@
<head lang="{{ .Site.Language.Lang }}">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- if .IsHome -}}
@@ -13,9 +13,10 @@
<link rel="icon" type="image/png" href={{ .Site.BaseURL }}{{ .Site.Params.favicon }} />
{{- end -}}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.og_image }}"/>
<meta prefix="og: http://ogp.me/ns#" />
<meta property="og:image" content="{{ .Site.BaseURL }}{{ .Site.Params.og_image }}" />
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
@@ -30,7 +31,7 @@
{{- if isset .Site.Params "customcss" }}
{{ range .Site.Params.customCSS }}
{{ $customstyle := resources.Get . | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $customstyle.Permalink }}">
<link rel="stylesheet" type="text/css" href="{{ $customstyle.Permalink }}" />
{{ end }}
{{- end -}}
{{- range .Site.Params.customJS }}