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 --- internal/builder/list.templ | 51 --------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 internal/builder/list.templ (limited to 'internal/builder/list.templ') diff --git a/internal/builder/list.templ b/internal/builder/list.templ deleted file mode 100644 index 24cafe8..0000000 --- a/internal/builder/list.templ +++ /dev/null @@ -1,51 +0,0 @@ -package builder - -import ( - "website/internal/config" - "website/internal/content" -) - -templ tagPage(config config.Config, tag string, posts []content.Post, path string) { - @page(config, PageSettings{ - Title: tag, - Path: path, - TitleAttrs: templ.Attributes{ - "class": "p-author h-card", - "rel": "author", - }, - }) { -
-

#{ tag }

- - Remove filter - -
- @list(posts) - } -} - -templ listPage(config config.Config, posts []content.Post, path string) { - @page(config, PageSettings{ - Title: config.Title, - TitleAttrs: templ.Attributes{ - "class": "p-author h-card", - "rel": "author", - }, - Path: path, - }) { - @list(posts) - } -} - -templ list(posts []content.Post) { - -} -- cgit 1.4.1