Remove empty 404.html and clean up <title> in head.html

This commit is contained in:
BBaoVanC 2021-10-08 20:15:42 -05:00
parent 8a4579007b
commit b9fd054f37
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 5 additions and 3 deletions

View File

View File

@ -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 }}</title>
{{ if .IsHome }}
<title>{{ .Site.Title }}</title>
{{ else }}
<title>{{ print .Title " | " .Site.Title }}</title>
{{ end }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}