{ post.Title }
++ @postDate(post.Date) +
+From a2feb8c63c80a1f52830f562af2deb2c6065eaae Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 24 Jun 2024 21:48:36 +0200 Subject: move templ templates into separate package --- templates/404.templ | 13 ++++++ templates/homepage.templ | 42 +++++++++++++++++ templates/list.templ | 51 +++++++++++++++++++++ templates/page.templ | 115 +++++++++++++++++++++++++++++++++++++++++++++++ templates/post.templ | 51 +++++++++++++++++++++ templates/tags.templ | 23 ++++++++++ 6 files changed, 295 insertions(+) create mode 100644 templates/404.templ create mode 100644 templates/homepage.templ create mode 100644 templates/list.templ create mode 100644 templates/page.templ create mode 100644 templates/post.templ create mode 100644 templates/tags.templ (limited to 'templates') diff --git a/templates/404.templ b/templates/404.templ new file mode 100644 index 0000000..4b5e52a --- /dev/null +++ b/templates/404.templ @@ -0,0 +1,13 @@ +package templates + +import "website/internal/config" + +templ NotFound(config config.Config, path string) { + @Page(config, PageSettings{ + Title: "Not Found", + Path: path, + }) { +
+ @postDate(post.Date) +
+