use partial for page title
This commit is contained in:
parent
8ac75f4104
commit
22da247332
12 changed files with 32 additions and 21 deletions
18
layouts/partials/head/title.html
Normal file
18
layouts/partials/head/title.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue