use partial for page title

This commit is contained in:
Ben Goldsworthy 2025-06-04 17:44:11 +02:00
parent 8ac75f4104
commit 22da247332
No known key found for this signature in database
12 changed files with 32 additions and 21 deletions

View file

@ -0,0 +1,18 @@
{{- /*
Renders the page title.
@params . Slice of title sections.
*/
-}}
<!-- Validation -->
{{- if ( not ( ge ( len . ) 1 ) ) -}}
{{- errorf "No site title received" -}}
{{- end -}}
<!-- Rendering -->
<title itemprop="name">
{{- delimit . " | " -}}
</title>