{{ title }}
-{{ description }}
-{{ nextPost.data.title }} - -
{{ previousPost.data.title }} - -
From 61a420945ceaab25f2e881e1260f188a6e95d944 Mon Sep 17 00:00:00 2001
From: EmptyWork <22065214+EmptyWork@users.noreply.github.com>
Date: Sun, 8 Jun 2025 08:13:36 +0900
Subject: [PATCH 1/7] =?UTF-8?q?move:=20`article.njk`=20=E2=80=94=20to=20la?=
=?UTF-8?q?youts=20folder?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/_includes/{ => layouts}/article.njk | 120 ++++++++++++------------
1 file changed, 60 insertions(+), 60 deletions(-)
rename src/_includes/{ => layouts}/article.njk (96%)
diff --git a/src/_includes/article.njk b/src/_includes/layouts/article.njk
similarity index 96%
rename from src/_includes/article.njk
rename to src/_includes/layouts/article.njk
index 8f28fb6..7edaeb5 100644
--- a/src/_includes/article.njk
+++ b/src/_includes/layouts/article.njk
@@ -1,61 +1,61 @@
----
-layout: 'layouts/secondary.njk'
-style: 'article.css'
----
-{% set previousPost = collections.post | getPreviousCollectionItem(page) %}
-{% set nextPost = collections.post | getNextCollectionItem(page) %}
-
- {{ description }} {{ description }}
-
{{ title }}
-
{{ nextPost.data.title }}
-
-
{{ previousPost.data.title }}
-
-
+
{{ title }}
+
{{ nextPost.data.title }}
+
+
{{ previousPost.data.title }}
+
+
{%- for post in recentPosts -%}
- {% include "components/snippets/article.njk" %}
+ {% include "components/snippets/card.njk" %}
{% else %}
You haven't post anything yet.
@@ -125,8 +125,7 @@ style: 'blog.css'
- {{ post.title }} #} + {{ post.title }} - {#
From 544193f99e5edd03d88b4ebc634c43c0a9fd110b Mon Sep 17 00:00:00 2001 From: EmptyWork <22065214+EmptyWork@users.noreply.github.com> Date: Sun, 8 Jun 2025 08:21:59 +0900 Subject: [PATCH 4/7] =?UTF-8?q?update:=20`blog.json`=20=E2=80=94=20use=20`?= =?UTF-8?q?layouts/article.njk`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/articles/blog/blog.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/articles/blog/blog.json b/src/articles/blog/blog.json index f12ff44..49fb9ea 100644 --- a/src/articles/blog/blog.json +++ b/src/articles/blog/blog.json @@ -1,5 +1,5 @@ { - "layout": "article.njk", + "layout": "layouts/article.njk", "tags": "post", "author": "EmptyWork", "image": "/images/emptywork.my.id-default-post.jpg", From 6362abde956501989969d7338793c570d3c1fe14 Mon Sep 17 00:00:00 2001 From: EmptyWork <22065214+EmptyWork@users.noreply.github.com> Date: Sun, 8 Jun 2025 08:22:35 +0900 Subject: [PATCH 5/7] =?UTF-8?q?update:=20`card`=20=E2=80=94=20`*.njk`=20to?= =?UTF-8?q?=20`*-card.njk`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_includes/components/snippets/{card.njk => post-card.njk} | 0 .../components/snippets/{project.njk => project-card.njk} | 0 .../components/snippets/{prototype.njk => prototype-card.njk} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename src/_includes/components/snippets/{card.njk => post-card.njk} (100%) rename src/_includes/components/snippets/{project.njk => project-card.njk} (100%) rename src/_includes/components/snippets/{prototype.njk => prototype-card.njk} (100%) diff --git a/src/_includes/components/snippets/card.njk b/src/_includes/components/snippets/post-card.njk similarity index 100% rename from src/_includes/components/snippets/card.njk rename to src/_includes/components/snippets/post-card.njk diff --git a/src/_includes/components/snippets/project.njk b/src/_includes/components/snippets/project-card.njk similarity index 100% rename from src/_includes/components/snippets/project.njk rename to src/_includes/components/snippets/project-card.njk diff --git a/src/_includes/components/snippets/prototype.njk b/src/_includes/components/snippets/prototype-card.njk similarity index 100% rename from src/_includes/components/snippets/prototype.njk rename to src/_includes/components/snippets/prototype-card.njk From 78c8dda72e1e7fab45a091748710a14627b23794 Mon Sep 17 00:00:00 2001 From: EmptyWork <22065214+EmptyWork@users.noreply.github.com> Date: Sun, 8 Jun 2025 08:26:10 +0900 Subject: [PATCH 6/7] =?UTF-8?q?update:=20`njk`=20=E2=80=94=20use=20`*-card?= =?UTF-8?q?.njk`=20instead=20of=20`*.njk`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_includes/sections/prototypes.njk | 70 +++--- src/_includes/sections/work.njk | 82 ++++--- src/blog.njk | 298 +++++++++++++------------- 3 files changed, 224 insertions(+), 226 deletions(-) diff --git a/src/_includes/sections/prototypes.njk b/src/_includes/sections/prototypes.njk index 9513d7b..cb072f1 100644 --- a/src/_includes/sections/prototypes.njk +++ b/src/_includes/sections/prototypes.njk @@ -1,35 +1,35 @@ -- - - - {{ post.author }} - -
-- - {{ post.title }} - - -
-{{ post.desc | truncate(60) }}
-+ + + + {{ post.author }} + +
++ + {{ post.title }} + + +
+{{ post.desc | truncate(60) }}
+