Version 1.0.2

This commit is contained in:
pmoreno.rodriguez 2022-10-31 11:41:34 +01:00 committed by GitHub
parent 35695ede87
commit 6951a3bb6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,13 @@
{% set miniposts_category = theme_var('miniposts_category') %}
{% set miniposts_number = config.theme.miniposts_number %}
<section> <section>
<header class=""> <header class="">
<h3>{{ 'FUTURE.FEATURED'|t }}</h3> <h3>{{ 'FUTURE.FEATURED'|t }}</h3>
</header> </header>
<div class="mini-posts"> <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"> <article class="mini-post">
<header> <header>
<h3><a href="{{ p.url }}">{{ p.title }}</a></h3> <h3><a href="{{ p.url }}">{{ p.title }}</a></h3>