A good theme for a personal page. Includes: * Header with avatar, short bio and social links * simple, blog and modular templates * multilang support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grav-theme-personal/templates/blog.html.twig

21 lines
796 B

2 years ago
{% extends 'partials/base.html.twig' %}
{% set collection = page.collection() %}
{% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
2 years ago
{% block page_content %}
2 years ago
<section id="body-wrapper" class="section blog-listing">
<section>
2 years ago
<div class="bricklayer">
2 years ago
{% for child in collection %}
2 years ago
{% include 'partials/blog-list-item.html.twig' with {blog: page, page : child } %}
2 years ago
{% endfor %}
</div>
</section>
</section>
{% endblock %}