From 8a80745eac5f2885546b76ee4ff59d4de14c736e Mon Sep 17 00:00:00 2001 From: Emiliano Tortorella Date: Sat, 19 Jan 2019 09:31:51 -0500 Subject: [PATCH] Added section links to the all posts list. --- layouts/partials/all-posts-list.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/layouts/partials/all-posts-list.html b/layouts/partials/all-posts-list.html index 580d32f..18da19e 100644 --- a/layouts/partials/all-posts-list.html +++ b/layouts/partials/all-posts-list.html @@ -1,10 +1,11 @@ {{ $n_posts := $.Param "recent_posts_number" | default 3 }} +

Últimos posts:

-
+
{{ range (first $n_posts .Pages) }}
@@ -13,4 +14,21 @@ {{ end }}
+ +
+

+ Más posts en nuestras secciones: +

+ {{ range .Sections }} + {{ $post_count := len (.Pages) }} + {{ if ge $post_count 1 }} +

+ + {{ .Name }} + +

+ {{ end }} + {{ end }} +
+