From ff1e439432800cdf1a2cf98a4c8e08a4abacbf4c Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Tue, 06 Apr 2021 23:21:55 +0000
Subject: [PATCH] Update head.html
---
layouts/partials/head.html | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 2a4915d..152425e 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -10,7 +10,7 @@
<link rel="shortcut icon" href='{{ absURL (printf "%sfavicon.ico" $iconsPath) }}'>
<meta name="msapplication-config" content='{{ absURL (printf "%sbrowserconfig.xml" $iconsPath) }}'>
{{- $t := .Title }}
-{{- $s := .Site.Title }}
+{{- $s := site.Title }}
{{- if in (lower $s) (lower $t) }}
{{- $t = false }}
{{- end }}
@@ -22,7 +22,7 @@
{{- $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 }}
+{{- $sp := site.Params }}
{{- with $sp.customCSS }}
{{- range . -}}
<link rel="stylesheet" href="{{ . }}">
@@ -37,7 +37,7 @@
<meta name="description" content="{{ .Description }}">
{{ else if .IsPage }}
<meta name="description" content="{{ .Summary | plainify }}">
-{{ else if .Site.Params.Description }}
- <meta name="descripion" content="{{.Site.Params.Description }}">
+{{ else if $sp.Description }}
+ <meta name="descripion" content="{{ $sp.Description }}">
{{ end }}
{{- partialCached "hooks/head" . }}
--
Gitblit v1.10.0