Skip to content

Commit

Permalink
Relocate variable in Tufte-template
Browse files Browse the repository at this point in the history
  • Loading branch information
OleVik committed Aug 25, 2020
1 parent 1a99cb0 commit ed0a3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tufte/tufte.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends 'article.html.twig' %}

{% set body_classes = (body_classes|default('page article tufte')) %}
{% set navigablePage = page_navigation(page.content|strip_html_tags(['h1'])|section_wrapper('section', ['h2', 'h3', 'h4', 'h5', 'h6']), page.header.itemize ?? theme.itemize ?? false) %}

{% block stylesheets %}
{% do assets.addCss('theme://components/tufte/assets/tufte.min.css', 100) %}
Expand All @@ -18,6 +17,7 @@
<p class="subtitle">{{ page.header.subtitle }}</p>
{% endif %}
{% include 'partials/tufte/metadata.html.twig' with {'page': page} %}
{% set navigablePage = page_navigation(page.content|strip_html_tags(['h1'])|section_wrapper('section', ['h2', 'h3', 'h4', 'h5', 'h6']), page.header.itemize ?? theme.itemize ?? false) %}
{{ navigablePage.content }}
{% endblock %}
</article>
Expand Down

0 comments on commit ed0a3d4

Please sign in to comment.