forked from alphagov/govuk-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout-example-full-page.njk
31 lines (29 loc) · 1.1 KB
/
layout-example-full-page.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% extends "template.njk" %}
{% set bodyClasses = 'app-example-page' %}
{% block pageTitle %}{{ title }} – Example – GOV.UK Design System{% endblock %}
{% block head %}
<link href="{{ getFingerprint('stylesheets/main.css') }}" rel="stylesheet" media="all" />
{#- Include any additional stylesheets specified in the example frontmatter #}
{% for stylesheet in stylesheets %}
<link href="{{ getFingerprint(stylesheet) }}" rel="stylesheet" media="all" />
{%- endfor %}
<!--[if lt IE 9]>
<script src="{{ getFingerprint('javascripts/head-ie8.js') }}"></script>
<![endif]-->
<script src="/javascripts/vendor/modernizr.js"></script>
{% endblock %}
{% block header %}
{{ govukHeader({
homepageUrl: "#",
serviceName: "Service name",
serviceUrl: "#"
}) }}
{% endblock %}
{% block main %}
{{ contents | safe }}
{% endblock %}
{% block bodyEnd %}
<script src="/javascripts/vendor/iframeResizer.contentWindow.js"></script>
<script src="{{ getFingerprint('javascripts/govuk-frontend.js') }}"></script>
<script src="{{ getFingerprint('javascripts/example.js') }}"></script>
{% endblock %}