Change Language

Title Partial (title.html)

You can use this partial to customize the title of any page. Use the title block to customize.

You can pass one parameter (a slice of titles) if you only want one parameter. Otherwise, use dict to provide more parameters.

Example

{{- define "title" -}}
{{ $titles := slice .Title -}}
{{- if and .Paginator (gt .Paginator.PageNumber 1) -}}
{{- $titles = $titles | append (printf " (page %v)" .Paginator.PageNumber) -}}
{{- end -}}
{{- partial "title.html" (dict "titles" $titles) -}}
{{- end -}}

You might also like

This site is last updated ago