Commit 96066245 authored by Administrator's avatar Administrator 💬

Clean up.

parent ff2de0e8
> Looks like useless empty files in here!
We use them, though! See `m3-p2.php`.
\ No newline at end of file
We do use them, though! See `m3-p2.php`.
They're a convenient way of leveraging Grav's page system
to make our custom pages.
\ No newline at end of file
{# DEPRECATED -- see polyglot-columns #}
{% extends 'partials/base.html.twig' %}
{% block stylesheets %}
{% do assets.addCss('theme://css/columns.css') %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{% do assets.addJs('theme://js/syncscroll.js', {group:'bottom'}) %}
{{ parent() }}
{% endblock %}
{% block body %}
<div class="claude-columns">
{% for column in page | translations %}
{#{% for column in language_selector.translated_pages %}#}
<section id="{{ macro.pageLinkName(column.menu) }}" class="claude-column syncscroll" name="language">
{{ column.content|raw }}
{#{% include 'partials/contributions-incentive.html.twig' with {page: column} %}#}
</section>
{% endfor %}
</div>
{#{{ page.content|raw }}#}
{% endblock %}
{% extends 'partials/base.html.twig' %}
{# `page` is irrelevant here #}
{# use `target_page`, injected by m3-p2 plugin #}
{% block stylesheets %}
{% do assets.addCss('theme://css/columns.css') %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{% do assets.addJs('theme://js/syncscroll.js', {group:'bottom'}) %}
{{ parent() }}
......@@ -15,18 +18,17 @@
{% block body %}
<div class="claude-columns">
{% for column in target_page | translations %}
<section id="{{ macro.pageLinkName(column.menu) }}" class="claude-column syncscroll" name="language">
<section id="{{ column.slug }}" class="claude-column syncscroll" name="language">
{{ column.content | raw }}
{#{% include 'partials/contributions-incentive.html.twig' with {page: column} %}#}
</section>
{% endfor %}
</div>
{% endblock %}
{# Disable the language selector. #}
{% block header_language_selection %}{% endblock %}
{# … disabling the whole section instead is semantically correct but it offsets the navigation. TBD #}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment