From 660e6fb1b4b4fa57596471d80c4e4264c711f915 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 9 Oct 2026 19:11:34 +0300 Subject: Blog stuff initial version --- website.templ | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'website.templ') diff --git a/website.templ b/website.templ index 1371351..454568c 100644 --- a/website.templ +++ b/website.templ @@ -23,6 +23,7 @@ templ HeadComponent(title string, description string) { + { children... } @@ -750,3 +751,34 @@ templ Icon(color string) { { children... } } + +templ BlogPage(style Style, blog Blog, prev *Blog, next *Blog) { + @TerminalLayout(style, blog.Title) { + @ScrollBox("") { + @BlogItem("", blog, "mb-[1rem]") +
+ @templ.Raw(blog.HTML) +
+
+ @BlogNav("Previous Blog", prev, "") + @BlogNav("Next Blog", next, "") +
+ } + } +} + +templ BlogNav(label string, blog *Blog, extra string) { + @TerminalBorder(label, "", extra) { + if blog != nil { + vim ~/blogs/{ blog.Slug } + } + } +} + +templ FootnotePanel() { + +} -- cgit v1.3.1