From 880a13c294292d5594002bc5526e237a5fa16ec3 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:32:44 -0500 Subject: [PATCH] refactor: use components for repeated sections, cleanup --- src/components/postlist.vto | 17 ++++++++ src/components/postslist.vto | 33 ---------------- src/components/projectlist.vto | 35 +++++++++++++++++ src/components/projectslist.vto | 34 ---------------- src/components/tags.vto | 13 +++++++ src/components/time.vto | 12 ++++++ src/generated/feed.xml.vto | 38 +++++++++--------- src/layouts/base.vto | 24 +++++++----- src/layouts/post.vto | 69 +++++++++++++-------------------- src/posts/index.vto | 4 +- src/projects.vto | 6 +-- src/tags.vto | 6 +-- 12 files changed, 147 insertions(+), 144 deletions(-) create mode 100644 src/components/postlist.vto delete mode 100644 src/components/postslist.vto create mode 100644 src/components/projectlist.vto delete mode 100644 src/components/projectslist.vto create mode 100644 src/components/tags.vto create mode 100644 src/components/time.vto diff --git a/src/components/postlist.vto b/src/components/postlist.vto new file mode 100644 index 00000000..234afde0 --- /dev/null +++ b/src/components/postlist.vto @@ -0,0 +1,17 @@ +{{ import { Time } from './time.vto' }} +{{ import { Tags } from './tags.vto' }} + +{{ export function PostList(posts) }} + {{- for index, post of posts -}} +
{{ post.data.description }}
+{{ post.data.description }}
-