all repos — homestead @ 7c9ce0ed7f5058db65a13c036857cd7c32a5464b

Code for my website

move templ templates into separate package

Alan Pearce
commit

7c9ce0ed7f5058db65a13c036857cd7c32a5464b

parent

415059cadd06ea235091cc4e78f585d52fea9f04

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M internal/builder/tags.templtemplates/tags.templ
@@ -1,4 +1,4 @@
-package builder +package templates import "website/internal/config"
@@ -6,8 +6,8 @@ templ tagLink(tag string, attrs templ.Attributes) {
<a { attrs... } href={ templ.SafeURL("/tags/" + tag) }>#{ tag }</a> } -templ tagsPage(config config.Config, title string, tags []string, path string) { - @page(config, PageSettings{ +templ TagsPage(config config.Config, title string, tags []string, path string) { + @Page(config, PageSettings{ Title: title, Path: path, }) {