From 7768127a48ea224187b5ad000a573291e474b732 Mon Sep 17 00:00:00 2001 From: George Goodall Date: Thu, 9 Nov 2023 16:53:36 +0000 Subject: [PATCH] added a test page --- .../templates/layouts/layout--guidance.html | 8 ++++++- .../pages/guidance/JeremyTestPage.html | 22 +++++++++++++++++++ .../pages/guidance/JeremyTestPage.md | 0 .../templates/pages/guidance/index.html | 5 +++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 application/templates/pages/guidance/JeremyTestPage.html create mode 100644 application/templates/pages/guidance/JeremyTestPage.md diff --git a/application/templates/layouts/layout--guidance.html b/application/templates/layouts/layout--guidance.html index a1899a88..e52de587 100644 --- a/application/templates/layouts/layout--guidance.html +++ b/application/templates/layouts/layout--guidance.html @@ -89,7 +89,13 @@

{{ pageData.pageTitle }}

'current': true if pageData.name == 'tree-preservation-order' else false, } ] - } + }, + { + 'text': 'Jeremy Test Page', + 'theme': themes[0], + 'href': sectionPath + 'JeremyTestPage', + 'current': true if pageData.name == 'JeremyTestPage' else false, + }, ] }) }} diff --git a/application/templates/pages/guidance/JeremyTestPage.html b/application/templates/pages/guidance/JeremyTestPage.html new file mode 100644 index 00000000..e5c5ad3f --- /dev/null +++ b/application/templates/pages/guidance/JeremyTestPage.html @@ -0,0 +1,22 @@ +{%- do pageData.update({ + 'pageTitle': 'Jeremy Test Page' + }) %} + {% set templateName = 'dl-info/guidance/JeremyTestPage.html' %} + {% extends "layouts/layout--guidance.html" %} + {%- from "components/back-button/macro.jinja" import dlBackButton %} + + {% block breadcrumbs%} + {{ dlBackButton({ + "parentHref": '/guidance/' + })}} + {% endblock %} + + {% block content_primary %} + + {% set markdown_content %} + {%- include pageData.root_url + "JeremyTestPage.md" with context -%} + {% endset %} + + {{ markdown_content | render_markdown(govAttributes=True) }} + + {% endblock %} diff --git a/application/templates/pages/guidance/JeremyTestPage.md b/application/templates/pages/guidance/JeremyTestPage.md new file mode 100644 index 00000000..e69de29b diff --git a/application/templates/pages/guidance/index.html b/application/templates/pages/guidance/index.html index 10e99c7e..8d06334a 100644 --- a/application/templates/pages/guidance/index.html +++ b/application/templates/pages/guidance/index.html @@ -30,5 +30,10 @@

Technical specifications

Technical guidance on what to include in each dataset.

+ +

+ Jeremy Test Page +

+

A test page for Jeremy.

{#
#} {% endblock %}