Replace _ with - in file names

This commit is contained in:
Will Faught
2022-12-12 23:20:23 -08:00
parent e5ab39b3a2
commit b6783d2750
30 changed files with 41 additions and 41 deletions

View File

@@ -0,0 +1,15 @@
{{ $title := "" }}
{{ $pageTitle := .Title | markdownify | plainify | htmlUnescape }}
{{ $siteTitle := .Site.Title | markdownify | plainify | htmlUnescape }}
{{ if and .Title .Site.Title }}
{{ if .IsHome }}
{{ $title = $pageTitle }}
{{ else }}
{{ $title = printf "%s · %s" $pageTitle $siteTitle }}
{{ end }}
{{ else if .Title }}
{{ $title = $pageTitle }}
{{ else if .Site.Title }}
{{ $title = $siteTitle }}
{{ end }}
{{ return $title }}