diff --git a/_includes/indexlayout.njk b/_includes/indexlayout.njk index f07f00f..858f4fc 100644 --- a/_includes/indexlayout.njk +++ b/_includes/indexlayout.njk @@ -1,3 +1,15 @@ +---js +{ + pagination: { + data: "collections.all", + size: 5, + alias: "posts", + before: function(posts) { + return posts.sort((postA, postB) => new Date(postB.date) - new Date(postA.date)); + }, + }, +} +---
@@ -8,7 +20,7 @@ {{ content | safe }} - {%- for post in collections.all -%} + {%- for post in posts -%} {{ post.data.title }} diff --git a/content/.obsidian/workspace b/content/.obsidian/workspace index 1c64e99..338bdfc 100644 --- a/content/.obsidian/workspace +++ b/content/.obsidian/workspace @@ -9,7 +9,7 @@ "state": { "type": "markdown", "state": { - "file": "index.md", + "file": "posts/a_modern_terminal_workflow_3.md", "mode": "source", "source": false } @@ -69,7 +69,7 @@ "state": { "type": "backlink", "state": { - "file": "index.md", + "file": "posts/a_modern_terminal_workflow_3.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -89,6 +89,7 @@ }, "active": "a8e90712c1fef449", "lastOpenFiles": [ + "posts/a_modern_terminal_workflow_3.md", "index.md", "posts/deving_on_linux_is_fun.md", "posts/coming-out-again-nb.md", @@ -97,7 +98,6 @@ "posts/blm.md", "posts/best-improv-performance-yet.md", "posts/a_modern_terminal_workflow_2.md", - "posts/ember-modifiers.md", - "posts/code2college-volunteering-resume-prep.md" + "posts/ember-modifiers.md" ] } \ No newline at end of file