From 69a590ac0f82c1a89ea5af2172dd512c32ba5055 Mon Sep 17 00:00:00 2001
From: one <onewesh@gmail.com>
Date: Tue, 04 Aug 2020 19:57:20 +0000
Subject: [PATCH] Update head.html
---
layouts/partials/head.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 05f5aa8..bc11afe 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -12,7 +12,7 @@
<meta name="msapplication-config" content='{{ absURL (printf "%sbrowserconfig.xml" $iconsPath) }}'>
<meta name="theme-color" content="#ffffff">
-<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
+<title>{{ if and .Title (ne (trim (lower .Site.Title) "") (trim (lower .Title) "")) }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
{{- partial "opengraph" . }}
--
Gitblit v1.10.0