mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Version 1.0.2
This commit is contained in:
parent
35695ede87
commit
6951a3bb6e
1 changed files with 5 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
|||
{% set miniposts_category = theme_var('miniposts_category') %}
|
||||
{% set miniposts_number = config.theme.miniposts_number %}
|
||||
|
||||
<section>
|
||||
<header class="">
|
||||
<h3>{{ 'FUTURE.FEATURED'|t }}</h3>
|
||||
</header>
|
||||
<div class="mini-posts">
|
||||
{% set slice_miniposts = config.theme.miniposts_number %}
|
||||
{% for p in page.evaluate({'@taxonomy.category':'minipost'}).order('header.order', 'asc').slice(0,slice_miniposts) %}
|
||||
|
||||
{% for p in page.evaluate({'@taxonomy.category':miniposts_category}).order('header.order', 'asc').slice(0,miniposts_number) %}
|
||||
<article class="mini-post">
|
||||
<header>
|
||||
<h3><a href="{{ p.url }}">{{ p.title }}</a></h3>
|
||||
|
|
Loading…
Add table
Reference in a new issue