Skip to content

Commit b7ca2f0

Browse files
committed
Add new footer blocks and variables
1 parent af7f6a3 commit b7ca2f0

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

src/styles/page-template/block-areas/index.njk

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,25 @@ stylesheets:
9797
</div>
9898
{%- endblock %}
9999

100+
{% block footerStart -%}
101+
<div class="app-annotate-block">
102+
<span class="app-annotate-block__label">block: footerStart</span>
103+
</div>
104+
{%- endblock %}
105+
106+
{% block footerEnd -%}
107+
<div class="app-annotate-block">
108+
<span class="app-annotate-block__label">block: footerEnd</span>
109+
</div>
110+
{%- endblock %}
111+
112+
{% block govukFooter -%}
113+
<div class="app-annotate-block">
114+
<span class="app-annotate-block__label">block: govukFooter</span>
115+
{{ super() }}
116+
</div>
117+
{%- endblock %}
118+
100119
{% block bodyEnd -%}
101120
<div class="app-annotate-block">
102121
<span class="app-annotate-block__label">block: bodyEnd</span>

src/styles/page-template/index.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,41 @@ To change the components that are included in the page template by default, set
163163
<tr class="govuk-table__row">
164164
<td class="govuk-table__cell">footer</td>
165165
<td class="govuk-table__cell">Block</td>
166+
<td class="govuk-table__cell">
167+
Override the <code>&lt;footer&gt;</code> element and the <code>govukFooter</code>, <code>footerStart</code>, and <code>footerEnd</code> blocks.
168+
</td>
169+
</tr>
170+
<tr class="govuk-table__row">
171+
<td class="govuk-table__cell">footerAttributes</td>
172+
<td class="govuk-table__cell">Variable</td>
173+
<td class="govuk-table__cell">
174+
Add HTML attributes to the <code>&lt;footer&gt;</code> element.
175+
</td>
176+
</tr>
177+
<tr class="govuk-table__row">
178+
<td class="govuk-table__cell">footerClasses</td>
179+
<td class="govuk-table__cell">Variable</td>
180+
<td class="govuk-table__cell">
181+
Add a class to the <code>&lt;footer&gt;</code> element.
182+
</td>
183+
</tr>
184+
<tr class="govuk-table__row">
185+
<td class="govuk-table__cell">footerEnd</td>
186+
<td class="govuk-table__cell">Block</td>
187+
<td class="govuk-table__cell">
188+
Add custom HTML at the end of the <code>&lt;footer&gt;</code> element.
189+
</td>
190+
</tr>
191+
<tr class="govuk-table__row">
192+
<td class="govuk-table__cell">footerStart</td>
193+
<td class="govuk-table__cell">Block</td>
194+
<td class="govuk-table__cell">
195+
Add custom HTML at the start of the <code>&lt;footer&gt;</code> element.
196+
</td>
197+
</tr>
198+
<tr class="govuk-table__row">
199+
<td class="govuk-table__cell">govukFooter</td>
200+
<td class="govuk-table__cell">Block</td>
166201
<td class="govuk-table__cell">
167202
Override the default <a class="govuk-link" href="/components/footer/">Footer component</a>.
168203
</td>

0 commit comments

Comments
 (0)