-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lee Calcote <[email protected]>
- Loading branch information
1 parent
8bee131
commit 23a67fe
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: Blog | ||
description: Keep up with the latest news. | ||
pagination: | ||
enabled: true | ||
category: meshery | ||
sort_field: 'date' | ||
sort_reverse: true | ||
--- | ||
<div class="text-container"> | ||
<div class="section-bar"><h1>Blog</h1></div> | ||
<ul class="blog-posts"> | ||
{% include list-posts.html posts=paginator.posts %} | ||
</ul> | ||
|
||
{% if paginator.total_pages > 1 %} | ||
<!-- Pagination links --> | ||
<div class="pagination"> | ||
{% if paginator.previous_page %} | ||
<a | ||
href="{% include relative-src.html src=paginator.previous_page_path %}" | ||
class="previous btn" | ||
>← Newer posts</a | ||
> | ||
{% endif %} | ||
|
||
<span class="page_number" | ||
>{{ paginator.page }} of {{ paginator.total_pages }}</span | ||
> | ||
|
||
{% if paginator.next_page %} | ||
<a | ||
href="{% include relative-src.html src=paginator.next_page_path %}" | ||
class="next btn" | ||
>Older posts →</a | ||
> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> |