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

20 lines
796 B

{% 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) %}
{% block page_content %}
<section id="body-wrapper" class="section blog-listing">
<section>
<div class="bricklayer">
{% for child in collection %}
{% include 'partials/blog-list-item.html.twig' with {blog: page, page : child } %}
{% endfor %}
</div>
</section>
</section>
{% endblock %}