all repos — homestead @ 20dd619b8605660dac67fa435d711e5f22da3174

Code for my website

ensure reasonable ordering of declarations in source

Alan Pearce
commit

20dd619b8605660dac67fa435d711e5f22da3174

parent

6f41d182abaf1af16fd0cc697abf0f2e9ce54c5c

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

changed files
M domain/content/templates/list.godomain/content/templates/list.go
@@ -13,6 +13,10 @@ Tag string
Posts []*content.Post } +type ListPageVars struct { + Posts []*content.Post +} + func TagPage(site templates.SiteSettings, vars TagPageVars) g.Node { return templates.Layout(site, templates.PageSettings{ Title: vars.Tag,
@@ -27,10 +31,6 @@ ),
), list(vars.Posts), )) -} - -type ListPageVars struct { - Posts []*content.Post } func ListPage(site templates.SiteSettings, vars ListPageVars) g.Node {