mirror of https://github.com/onweru/compose.git

weru
13.55.2024 20909d29d9a8f59f4a60d4a46fe0ab2efc0b43ae
layouts/partials/head/index.html
@@ -16,29 +16,29 @@
{{- end }}
<title>{{ if and $t (ne (trim (lower $s) "") (trim (lower $t) "")) }}{{ $t }} | {{ end }}{{ $s }}</title>
{{- partial "opengraph" . }}
{{- partial "opengraph" . -}}
{{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}}
{{- $styles := resources.Get "sass/main.sass" | resources.ExecuteAsTemplate "main.sass" . | resources.ToCSS $options | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}">
{{- $sp := site.Params }}
{{- with $sp.customCSS }}
{{- $config := site.Params }}
{{- with $config.customCSS }}
  {{- range . -}}
  <link rel="stylesheet" href="{{ . }}">
  {{- end }}
{{- end }}
{{ with $sp.metaThemeColor }}
  <meta name="theme-color" content="{{.}}">
{{ end }}
{{- with $config.metaThemeColor }}
  <meta name="theme-color" content="{{ . }}">
{{- end }}
{{ if .Description }}
{{- if .Description }}
  <meta name="description" content="{{ .Description }}">
{{ else if .IsPage }}
  <meta name="description" content="{{ .Summary | plainify }}">
{{ else if $sp.Description }}
  <meta name="descripion" content="{{ $sp.Description }}">
{{ end }}
{{- else if .IsPage }}
  <meta name="description" content="{{ plainify .Summary }}">
{{- else if $config.Description }}
  <meta name="descripion" content="{{ $config.Description }}">
{{- end }}
{{- partial "head/liteyoutube" . }}
{{- partialCached "hooks/head" . }}
{{- partialCached "hooks/head" . -}}