Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/content/recent-posts.html')
-rw-r--r--layouts/partials/content/recent-posts.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/content/recent-posts.html b/layouts/partials/content/recent-posts.html
new file mode 100644
index 0000000..0cc90e0
--- /dev/null
+++ b/layouts/partials/content/recent-posts.html
@@ -0,0 +1,15 @@
+<div class="container">
+ <section>
+ <div class="section-title">
+ <span>Posts</span>
+ </div>
+ <div class="row px-2">
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
+ {{ range $paginator.Pages.ByDate.Reverse }}
+ {{ partial "post/card" . }}
+ {{ end }}
+ {{ partial "content/pagination" . }}
+ <!-- begin post -->
+ </div>
+ </section>
+</div> \ No newline at end of file