-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure masthead component appears within main landmark on product layout
- Loading branch information
1 parent
867d448
commit dd4024b
Showing
1 changed file
with
30 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
{% extends "layouts/base.njk" %} | ||
|
||
{% block main %} | ||
{{ xGovukMasthead({ | ||
title: { | ||
html: title | smart | ||
} if title, | ||
description: { | ||
html: description | markdown("inline") | noOrphans | ||
} if description, | ||
startButton: { | ||
href: startButton.href, | ||
text: startButton.text | ||
} if startButton, | ||
image: { | ||
alt: image.alt, | ||
src: image.src | ||
} if image, | ||
breadcrumbs: { | ||
classes: "govuk-!-display-none-print", | ||
items: breadcrumbItems | ||
} if showBreadcrumbs | ||
}) }} | ||
<main id="main-content" role="main" {%- if mainLang %} lang="{{ mainLang }}"{% endif %}> | ||
{{ xGovukMasthead({ | ||
title: { | ||
html: title | smart | ||
} if title, | ||
description: { | ||
html: description | markdown("inline") | noOrphans | ||
} if description, | ||
startButton: { | ||
href: startButton.href, | ||
text: startButton.text | ||
} if startButton, | ||
image: { | ||
alt: image.alt, | ||
src: image.src | ||
} if image, | ||
breadcrumbs: { | ||
classes: "govuk-!-display-none-print", | ||
items: breadcrumbItems | ||
} if showBreadcrumbs | ||
}) }} | ||
<div class="govuk-main-wrapper {%- if mainClasses %} {{ mainClasses }}{% endif %}"> | ||
<div class="govuk-width-container {%- if containerClasses %} {{ containerClasses }}{% endif %}"> | ||
{% block content %} | ||
{{ appProseScope(content) if content }} | ||
|
||
{{ super() }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{{ appProseScope(content) if content }} | ||
|
||
{% include "layouts/shared/related.njk" %} | ||
{% include "layouts/shared/related.njk" %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</main> | ||
{% endblock %} |