Title
The main page title; the first level heading.
View the code for this example
{% from 'includes/title.njk' import title as title %}
{{ title({
classes: 'custom-class custom-class-two',
caption: 'Wonderful, wonderful,',
text: 'Copenhagen!'
})}}
Nunjucks Macro parameters
Name | Type | Description |
---|---|---|
classes |
string | Classes to add to the h1. |
caption |
string | An optional caption that’s rendered before the title. |
text |
string | The title text. |