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/tags.templ | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 templates/tags.templ (limited to 'templates/tags.templ') diff --git a/templates/tags.templ b/templates/tags.templ new file mode 100644 index 0000000..7218ca1 --- /dev/null +++ b/templates/tags.templ @@ -0,0 +1,23 @@ +package templates + +import "website/internal/config" + +templ tagLink(tag string, attrs templ.Attributes) { + #{ tag } +} + +templ TagsPage(config config.Config, title string, tags []string, path string) { + @Page(config, PageSettings{ + Title: title, + Path: path, + }) { +

Tags

+ + } +} -- cgit 1.4.1