Skip to content

Commit

Permalink
Include partials without specifying the entire path
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ju committed Dec 12, 2017
1 parent 56d3914 commit 5c7a9d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions views/layouts/layout-pane.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<a href="#content" class="govuk-c-skip-link">Skip to main content</a>
<div class="app-o-pane">
<div class="app-o-pane__header">
{% include "../partials/_header.njk" %}
{% include "_header.njk" %}
</div>
<div class="app-o-pane__body">
<div class="app-o-pane__toc">
{% include "../partials/_toc.njk" %}
{% include "_toc.njk" %}
</div>
<div class="app-o-pane__content">
<main id="content" class="app-c-content" role="main">
Expand All @@ -29,7 +29,7 @@
{{ contents | safe }}
{% endblock %}
</main>
{% include "../partials/_footer.njk" %}
{% include "_footer.njk" %}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions views/layouts/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
<a href="#content" class="govuk-c-skip-link">Skip to main content</a>
<div class="app-o-pane">
<div class="app-o-pane__header">
{% include "../partials/_header.njk" %}
{% include "_header.njk" %}
</div>
<div class="app-o-pane__content">
<main id="content" role="main">
{% block body %}
{{ contents | safe }}
{% endblock %}
</main>
{% include "../partials/_footer.njk" %}
{% include "_footer.njk" %}
</div>
</div>
</body>
Expand Down

0 comments on commit 5c7a9d4

Please sign in to comment.