Skip to content

Commit

Permalink
added a test page
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Nov 9, 2023
1 parent 2dda4cd commit 7768127
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/templates/layouts/layout--guidance.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ <h1 class="govuk-heading-xl">{{ pageData.pageTitle }}</h1>
'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,
},
]
})
}}
Expand Down
22 changes: 22 additions & 0 deletions application/templates/pages/guidance/JeremyTestPage.html
Original file line number Diff line number Diff line change
@@ -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 %}
Empty file.
5 changes: 5 additions & 0 deletions application/templates/pages/guidance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@ <h2 class="govuk-heading-s govuk-!-margin-bottom-1">
<a href="https://digital-land.github.io/specification/specification/">Technical specifications</a>
</h2>
<p>Technical guidance on what to include in each dataset.</p>

<h2 class="govuk-heading-s govuk-!-margin-bottom-1">
<a href="JeremyTestPage">Jeremy Test Page</a>
</h2>
<p>A test page for Jeremy.</p>
{# <hr class="govuk-section-break govuk-section-break--visible govuk-section-break--l"> #}
{% endblock %}

0 comments on commit 7768127

Please sign in to comment.