jcarrier-theme

A Grav CMS theme for <https://jacynthecarrier.com>.
git clone git://soucy.cc/jcarrier-theme.git
Log | Files | Refs | README | LICENSE

commit 6522ed1f252a1950a57edeb512034f61505f259c
parent d3be39b57e2f4ba3c87c0d338ce39afa10ac6fe5
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sat, 17 Oct 2020 23:00:48 -0400

Add a template for the project list page

Diffstat:
Atemplates/projects.html.twig | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/templates/projects.html.twig b/templates/projects.html.twig @@ -0,0 +1,25 @@ +{% extends 'partials/base.html.twig' %} + +{% block content %} + <section class="projects"> + {% if page.content or page.title %} + <header class="projects__content"> + <h1 class="rte">{{ page.title }}</h1> + + <div class="rte"> + {{ page.content }} + </div> + </header> + {% endif %} + + <ol class="projects__list"> + {% for subpage in page.children.visible %} + <li class="projects__item"> + <a href="{{ subpage.url }}"> + {{ subpage.title }} + </a> + </li> + {% endfor %} + </ol> + </section> +{% endblock %}