-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.njk
36 lines (28 loc) · 1.36 KB
/
index.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
layout: layouts/base.njk
title: Perro Dinero
cover_path: img/perro_dinero.png
---
{% set highlighted_publishables_count = 3 %}
{% set publishables = collections.publishables | head(-highlighted_publishables_count) %}
{% include "highlights.njk" %}
<hr>
{% set maxPosts = 6 + highlighted_publishables_count %}
{% set publishablesList = collections.publishables | head(-maxPosts) %}
{% set postsListCount = collections.publishables | length %}
<h2 class="text-primary dark:text-primary-dark text-3xl tracking-tight font-extrabold sm:text-4xl">
Otras publicaciones
</h2>
<div class="pt-4 pb-10 px-4 sm:px-6 lg:pt-6 lg:pb-14 lg:px-8">
<div class="mt-3 pt-5 grid gap-16 lg:grid-cols-2 lg:gap-x-5 lg:gap-y-12">
{% for post in publishablesList | reverse %}
{% if loop.index0 >= highlighted_publishables_count %}
{% include "postitem.njk" %}
{% endif %}
{% endfor %}
</div>
</div>
<a href="/posts/" type="button" class="block mx-auto w-fit no-underline px-4 py-2 border border-transparent text-base font-medium rounded-md text-green-700 bg-green-100 hover:bg-green-200 dark:text-yellow-700 dark:bg-yellow-100 dark:hover:bg-yellow-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 dark:focus:ring-yellow-500">Todos las publicaciones 📂 ({{ postsListCount }})</a>
<hr>
{% include "calls_to_action/newsletter_main.njk" %}
<br>