add recent page

This commit is contained in:
⧉ infominer 2023-06-07 11:03:09 +05:30
parent 289d555bd7
commit b2f8601dd0
2 changed files with 27 additions and 1 deletions

View File

@ -4,8 +4,10 @@ main:
url: "/about/"
- title: "Introduction"
url: /introduction/
- title: "Recent"
- title: "New"
url: "/posts/"
- title: "Updated"
url: "/recent/"
- title: "Categories"
url: "/categories/"
- title: "Aim"

24
_pages/recent.md Normal file
View File

@ -0,0 +1,24 @@
---
layout: archive
title: Recently Updated Content
author_profile: false
sidebar:
- title: "Identity Decentralized"
image: "/images/the-world-map-from-a-binary-code.webp"
image_alt: "Binary Globe Image by GDj"
nav: "didnav"
share: true
classes: wide
name: recent
permalink: recent/
toc: false
---
{%assign count = 0%}
{% assign modified = site.posts | sort: 'last_modified_at' | reverse %}
{% for post in modified %}
{% unless forloop.index0 >= 40 %}
{% assign count = count | plus: 1 %}
{% include archive-single.html type='list' %}
{% endunless %}
{% endfor %}