Rename func-title.html to title.html

This commit is contained in:
Will Faught
2023-02-22 23:16:18 -08:00
parent f51197145f
commit d0ddcbbb19
4 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
{{ $page := . }}
{{ $pagetitle := $page.Title | markdownify | plainify | htmlUnescape }}
{{ $result := "" }}
{{ $sitetitle := site.Title | markdownify | plainify | htmlUnescape }}
{{ if and $pagetitle $sitetitle }}
{{ if .IsHome }}
{{ $result = $pagetitle }}
{{ else }}
{{ $result = printf "%s · %s" $pagetitle $sitetitle }}
{{ end }}
{{ else if $pagetitle }}
{{ $result = $pagetitle }}
{{ else if $sitetitle }}
{{ $result = $sitetitle }}
{{ end }}
{{ return $result }}