From 20909d29d9a8f59f4a60d4a46fe0ab2efc0b43ae Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sat, 13 Jan 2024 17:55:34 +0000
Subject: [PATCH] fix semantic html errors #120
---
layouts/partials/head/index.html | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/layouts/partials/head/index.html b/layouts/partials/head/index.html
index a9f1146..97b2f4d 100644
--- a/layouts/partials/head/index.html
+++ b/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" . -}}
--
Gitblit v1.10.0