Skip to content

Commit 0687e7a

Browse files
Added gh links and footer.
1 parent f019624 commit 0687e7a

File tree

12 files changed

+81
-11
lines changed

12 files changed

+81
-11
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ just_the_docs:
6969
search_exclude: false
7070
# Footer "Edit this page on GitHub" link text
7171
gh_edit_link: true # show or hide edit this page link
72-
gh_edit_link_text: "Edit this page on GitHub."
72+
gh_edit_link_text: "Edit this page on GitHub"
7373
gh_edit_repository: "https://github.com/nhsdigital/architecture" # the github URL for your repo
7474
gh_edit_branch: "main" # the branch that your docs is served from
7575
#gh_edit_source: docs # the source that your files originate from

_data/footer-navigation.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
- title: Accessibility statement
2+
link: /accessibility/
3+
4+
- title: Acceptable use policy
5+
link: https://digital.nhs.uk/services/nhs-notify/acceptable-use-policy
6+
7+
- title: Cookies
8+
link: /cookies/
9+
10+
- title: Privacy
11+
link: https://digital.nhs.uk/services/nhs-notify/transparency-notice
12+
13+
- title: Sitemap
14+
link: /sitemap/
15+
16+
- title: Terms and conditions
17+
link: https://digital.nhs.uk/services/nhs-notify/terms-and-conditions

_includes/footer.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
<div class="nhsuk-width-container nhsuk-main-wrapper">
3+
{%- include prev_next/prev_next.md -%}
4+
</div>
5+
6+
7+
<footer role="contentinfo">
8+
<div class="nhsuk-footer-container">
9+
<div class="nhsuk-width-container">
10+
<h2 class="nhsuk-u-visually-hidden">Support links</h2>
11+
<div class="nhsuk-footer">
12+
<ul class="nhsuk-footer__list">
13+
<li class="nhsuk-footer__list-item nhsuk-footer-default__list-item">
14+
{%- include gh.html -%}
15+
</li>
16+
{% for item in site.data.footer-navigation %}
17+
<li class="nhsuk-footer__list-item nhsuk-footer-default__list-item">
18+
<a class="nhsuk-footer__list-item-link" href="{{ item.link | uri_escape }}">{{ item.title }}</a>
19+
</li>
20+
{% endfor %}
21+
22+
</ul>
23+
<div>
24+
<p class="nhsuk-footer__copyright">&copy; NHS England</p>
25+
</div>
26+
</div>
27+
</div>
28+
</div>
29+
</footer>

_includes/gh.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% if
2+
site.gh_edit_link and
3+
site.gh_edit_link_text and
4+
site.gh_edit_repository and
5+
site.gh_edit_branch and
6+
site.gh_edit_view_mode
7+
%}
8+
9+
<a class="nhsuk-footer__list-item-link" href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}{% if page.collection and site.collections_dir %}/{{ site.collections_dir }}{% endif %}/{{ page.path }}" id="edit-this-page">{{ site.gh_edit_link_text }}</a>
10+
11+
{% endif %}

_includes/prev_next/prev_next.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
<div style="display: flex;">
33
{%- include prev_next/set_prev_next.md -%}
44
<div style="flex: 1; display: flex; justify-content: flex-start;">
5-
{% if prev_url != "" %}
5+
6+
{% assign is404 = false %}
7+
{% if prev_url contains '404' %}
8+
{% assign is404 = true %}
9+
{% endif %}
10+
11+
12+
13+
{% if prev_url != "" and is404 != true %}
614
<a href="{{ prev_url }}" id="previous-page">Previous: {{prev_name}}</a>
715
{% endif %}
816
</div>

_layouts/home.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55

66
{{ content }}
77

8+
{%- include footer.html -%}
9+
810
</main>

_layouts/page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
{% endif %}
3232
<h1>{{ page.title }}</h1>
3333
{{ content }}
34-
{%- include prev_next/prev_next.md -%}
34+
3535
</div>
3636
</div>
3737
</div>
3838
</div>
3939
</main>
40-
</div>
40+
</div>
41+
{%- include footer.html -%}

_layouts/saf.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h1>{{ page.title }}: <a href="{{ saf_dimension.url | relative_url }}">{{ saf_
4949

5050

5151
{{ content }}
52-
{%- include prev_next/prev_next.md -%}
52+
5353
</div>
5454
</div>
5555
</div>
@@ -58,3 +58,4 @@ <h1>{{ page.title }}: <a href="{{ saf_dimension.url | relative_url }}">{{ saf_
5858
</div>
5959

6060

61+
{%- include footer.html -%}

_layouts/saf_dimension.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1>{{ page.title }} </h1>
4747

4848
{{ content }}
4949
{%- include saf_dimension.html saf_dimension_name=page.name -%}
50-
{%- include prev_next/prev_next.md -%}
50+
5151
</div>
5252
</div>
5353
</div>
@@ -57,3 +57,4 @@ <h1>{{ page.title }} </h1>
5757

5858

5959

60+
{%- include footer.html -%}

_layouts/saf_dimensions.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@
6767

6868

6969
{{ content }}
70-
{%- include prev_next/prev_next.md -%}
7170
</div>
7271
</div>
7372
</div>
7473
</div>
7574
</main>
7675
</div>
77-
76+
{%- include footer.html -%}
7877

0 commit comments

Comments
 (0)