/
get-started.njk
70 lines (62 loc) · 1.95 KB
/
get-started.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{% extends "./base.njk" %}
{%- from "node_modules/@ministryofjustice/frontend/moj/components/side-navigation/macro.njk" import mojSideNavigation %}
{% macro appSideNavigation(config) %}
{% set config = config|addActiveAttribute(page.filePathStem | url) %}
{{ mojSideNavigation(config) }}
{% endmacro %}
{% block content %}
<div class="govuk-width-container govuk-grid-row app-flex-container">
<div class="govuk-grid-column-one-third">
{{ appSideNavigation({
classes: 'govuk-!-padding-top-6',
sections: [
{
heading: {
text: "How we work"
},
items: [
{
text: 'Our approach',
href: ('/get-started/our-approach' | url)
},
{
text: 'Prototyping',
href: ('/get-started/prototyping' | url)
},
{
text: 'Production',
href: ('/get-started/production' | url)
}
]
},
{
heading: {
text: "How to guides"
},
items: [
{
text: 'Deploying your prototype',
href: ('/get-started/deploying-your-prototype' | url)
},
{
text: 'Setting up JavaScript',
href: ('/get-started/setting-up-javascript' | url)
}
]
}
]
}) }}
{% include "./partials/back-to-top.njk" %}
</div>
<div class="govuk-grid-column-two-thirds">
<main id="main-content" class="govuk-main-wrapper app-prose-scope" role="main">
<h1 class="govuk-heading-xl">
{% if subsection %}<span class="govuk-caption-xl">{{ subsection }}</span>{% endif %}
{{ title }}
</h1>
{{ content | safe }}
</main>
{% include "./partials/get-help.njk" %}
</div>
</div>
{% endblock %}