Commit 96066245 authored by Administrator's avatar Administrator 💬

Clean up.

parent ff2de0e8
> Looks like useless empty files in here! > Looks like useless empty files in here!
We use them, though! See `m3-p2.php`. We do use them, though! See `m3-p2.php`.
\ No newline at end of file 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' %} {% extends 'partials/base.html.twig' %}
{# `page` is irrelevant here #} {# `page` is irrelevant here #}
{# use `target_page`, injected by m3-p2 plugin #} {# use `target_page`, injected by m3-p2 plugin #}
{% block stylesheets %} {% block stylesheets %}
{% do assets.addCss('theme://css/columns.css') %} {% do assets.addCss('theme://css/columns.css') %}
{{ parent() }} {{ parent() }}
{% endblock %} {% endblock %}
{% block javascripts %} {% block javascripts %}
{% do assets.addJs('theme://js/syncscroll.js', {group:'bottom'}) %} {% do assets.addJs('theme://js/syncscroll.js', {group:'bottom'}) %}
{{ parent() }} {{ parent() }}
...@@ -15,18 +18,17 @@ ...@@ -15,18 +18,17 @@
{% block body %} {% block body %}
<div class="claude-columns"> <div class="claude-columns">
{% for column in target_page | translations %} {% 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 }} {{ column.content | raw }}
{#{% include 'partials/contributions-incentive.html.twig' with {page: column} %}#} {#{% include 'partials/contributions-incentive.html.twig' with {page: column} %}#}
</section> </section>
{% endfor %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}
{# Disable the language selector. #} {# Disable the language selector. #}
{% block header_language_selection %}{% endblock %} {% block header_language_selection %}{% endblock %}
{# … disabling the whole section instead is semantically correct but it offsets the navigation. TBD #} {# … 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