|
2 | 2 |
|
3 | 3 | {% block content %} |
4 | 4 | {{ content }} |
5 | | - <div class="govuk-grid-row"> |
6 | | - {# Paginate posts if front matter includes the pagination key #} |
7 | | - {% if pagination %} |
| 5 | + {# Paginate posts if front matter includes the pagination key #} |
| 6 | + {% if pagination %} |
| 7 | + <div class="govuk-grid-row"> |
8 | 8 | <section class="govuk-grid-column-two-thirds"> |
9 | 9 | <h2 class="govuk-heading-l govuk-!-font-size-27"> |
10 | 10 | {{ posts.title or app.posts.title or "Posts" }} |
|
23 | 23 | items: pagination | itemsFromPagination |
24 | 24 | }) if pagination.pages.length > 1 }} |
25 | 25 | </section> |
26 | | - {% if aside or related %} |
| 26 | + </div> |
| 27 | + {% if aside or related %} |
| 28 | + <div class="govuk-grid-row"> |
27 | 29 | <div class="govuk-grid-column-one-third"> |
28 | 30 | {% include "layouts/shared/related.njk" %} |
29 | 31 | </div> |
30 | | - {% endif %} |
31 | | - {# List sections (pages with a parent that is the homepage) if homepage has no pagination key set #} |
32 | | - {% elif eleventyNavigation.key == options.homeKey %} |
| 32 | + </div> |
| 33 | + {% endif %} |
| 34 | + {# List sections (pages with a parent that is the homepage) if homepage has no pagination key set #} |
| 35 | + {% elif eleventyNavigation.key == options.homeKey %} |
33 | 36 |
|
34 | | - {% set sections = [ |
35 | | - { title: "Screening", services: [ |
36 | | - "Bowel screening", |
37 | | - "Cohort manager", |
38 | | - "Explore team", |
39 | | - "HPV Self-Sampling", |
40 | | - "Manage breast screening", |
41 | | - "Manage your screening" |
42 | | - ] }, |
43 | | - { title: "Vaccinations", services: [ |
44 | | - "Book a vaccination", |
45 | | - "Manage vaccinations in schools", |
46 | | - "Manage your appointments", |
47 | | - "Record a vaccination", |
48 | | - "Select people for invitation" |
49 | | - ] }, |
50 | | - { title: "Personalised prevention", services: [ |
51 | | - "Personalised prevention platform", |
52 | | - "Smoking cessation" |
53 | | - ] } |
54 | | - ] %} |
| 37 | + {% set sections = [ |
| 38 | + { title: "Screening", services: [ |
| 39 | + "Bowel screening", |
| 40 | + "Cohort manager", |
| 41 | + "Explore team", |
| 42 | + "Manage breast screening", |
| 43 | + "Manage your screening" |
| 44 | + ] }, |
| 45 | + { title: "Vaccinations", services: [ |
| 46 | + "Book a vaccination", |
| 47 | + "Manage vaccinations in schools", |
| 48 | + "Manage your appointments", |
| 49 | + "Record a vaccination", |
| 50 | + "Select people for invitation" |
| 51 | + ] }, |
| 52 | + { title: "Personalised prevention", services: [ |
| 53 | + "Personalised prevention platform", |
| 54 | + "Smoking cessation" |
| 55 | + ] } |
| 56 | + ] %} |
55 | 57 |
|
56 | | - {% for section in sections %} |
| 58 | + {% for section in sections %} |
| 59 | + <div class="govuk-grid-row"> |
57 | 60 | <div class="govuk-grid-column-two-thirds"> |
58 | 61 | <h2 class="govuk-heading-l"> |
59 | 62 | {{ section.title }} |
60 | 63 | </h2> |
61 | 64 | </div> |
| 65 | + </div> |
62 | 66 |
|
63 | | - {% for service in section.services %} |
| 67 | + {% for batch in section.services | batch(2) %} |
| 68 | + <div class="govuk-grid-row"> |
| 69 | + {% for service in batch %} |
64 | 70 | {% for item in collections.all | eleventyNavigation(options.homeKey) %} |
65 | 71 | {% if (service == item.title) %} |
66 | 72 | <section class="govuk-grid-column-one-half govuk-!-margin-bottom-6"> |
|
72 | 78 | {% endif %} |
73 | 79 | {% endfor %} |
74 | 80 | {% endfor %} |
| 81 | + </div> |
75 | 82 | {% endfor %} |
| 83 | + {% endfor %} |
76 | 84 |
|
| 85 | + <div class="govuk-grid-row"> |
77 | 86 | <div class="govuk-grid-column-full"> |
78 | 87 | <hr class="govuk-section-break govuk-section-break--xl govuk-section-break--visible"> |
79 | 88 |
|
|
85 | 94 | <p class="govuk-body">{{ item.excerpt }}</p> |
86 | 95 | {% endif %} |
87 | 96 | {% endfor %} |
88 | | - |
89 | | - |
90 | 97 | </div> |
| 98 | + </div> |
91 | 99 |
|
92 | | - {% endif %} |
93 | | - </div> |
| 100 | + {% endif %} |
94 | 101 | {% endblock %} |
0 commit comments