From b9fd054f3726a1ddf95a89cf058c3444770f74e7 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 8 Oct 2021 20:15:42 -0500 Subject: [PATCH] Remove empty 404.html and clean up in head.html --- layouts/404.html | 0 layouts/partials/head.html | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 layouts/404.html diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2c79f6c..29e786d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,9 +16,11 @@ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - {{ $title := print .Title " | " .Site.Title }} - {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} - <title>{{ $title }} + {{ if .IsHome }} + {{ .Site.Title }} + {{ else }} + {{ print .Title " | " .Site.Title }} + {{ end }} {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }}