From e6d1d7f04e45b109af287232dfd6cf2621611e25 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Thu, 1 Aug 2024 00:48:47 -0400 Subject: [PATCH] kinda painful metadata --- links.typ | 3 --- links.yaml | 3 +++ posts/hello.typ | 1 + posts/hello.yaml | 4 ++++ templates/archive.html | 2 ++ templates/default.html | 30 ++++++++++++++++++++++++++++++ templates/feed.xml | 0 templates/home.html | 7 +++++++ templates/post-list.html | 7 +++++++ templates/post.html | 15 +++++++++++++++ 10 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 links.yaml create mode 100644 posts/hello.typ create mode 100644 posts/hello.yaml create mode 100644 templates/archive.html create mode 100644 templates/feed.xml create mode 100644 templates/home.html create mode 100644 templates/post-list.html create mode 100644 templates/post.html diff --git a/links.typ b/links.typ index 977c788..d85bcb1 100644 --- a/links.typ +++ b/links.typ @@ -1,6 +1,3 @@ -//#import misc_page from "/utils/layouts" -//#wrap doc in misc_page(doc) - #link("https://github.com/Pagwin-Fedora")[Github] \ #link("https://www.linkedin.com/in/spencer-powell-pagwin/")[Linkedin] \ #link("https://pagwin.xyz/index.xml")[RSS] diff --git a/links.yaml b/links.yaml new file mode 100644 index 0000000..579a411 --- /dev/null +++ b/links.yaml @@ -0,0 +1,3 @@ +title: links +author: pagin +tags: [] diff --git a/posts/hello.typ b/posts/hello.typ new file mode 100644 index 0000000..45b983b --- /dev/null +++ b/posts/hello.typ @@ -0,0 +1 @@ +hi diff --git a/posts/hello.yaml b/posts/hello.yaml new file mode 100644 index 0000000..e409d0f --- /dev/null +++ b/posts/hello.yaml @@ -0,0 +1,4 @@ +title: hello +author: pagwin +tags: [] +date: 2024-8-1 diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..05ffc76 --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,2 @@ +My posts: +{{> templates/post-list.html }} diff --git a/templates/default.html b/templates/default.html index e69de29..44af777 100644 --- a/templates/default.html +++ b/templates/default.html @@ -0,0 +1,30 @@ + + + + + + + My Shake Blog — {{{title}}} + + + + +
+

{{{title}}}

+ {{{content}}} +
+ + + diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..e69de29 diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..68a219c --- /dev/null +++ b/templates/home.html @@ -0,0 +1,7 @@ +

Welcome

+ +

Welcome to my blog!

+

My recent posts here for your reading pleasure:

+

Posts

+{{> templates/post-list.html }} +

You can find all posts in the archives. diff --git a/templates/post-list.html b/templates/post-list.html new file mode 100644 index 0000000..a398264 --- /dev/null +++ b/templates/post-list.html @@ -0,0 +1,7 @@ +

diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..e59221b --- /dev/null +++ b/templates/post.html @@ -0,0 +1,15 @@ +
+ Posted on {{{date}}} + {{#author}} + by {{{author}}} + {{/author}} +
+
+ Tags: + +
+{{{content}}}