all repos — homestead @ e4e8173ab6124daa84ef012e73c111f111d4a8cf

Code for my website

refactor: make templates take a more specific struct

Alan Pearce
commit

e4e8173ab6124daa84ef012e73c111f111d4a8cf

parent

a9f47f4e4ed3223e86dc1d5c3edd005b8d9ce589

1 file changed, 2 insertions(+), 4 deletions(-)

changed files
M templates/tags.templtemplates/tags.templ
@@ -1,13 +1,11 @@
package templates -import "go.alanpearce.eu/homestead/internal/config" - 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) { - @Layout(config, PageSettings{ +templ TagsPage(site SiteSettings, title string, tags []string, path string) { + @Layout(site, PageSettings{ Title: title, Path: path, }) {