group article header content in an hgroup
1 file changed, 8 insertions(+), 6 deletions(-)
changed files
M domain/content/templates/post.go → domain/content/templates/post.go
@@ -18,13 +18,15 @@ TitleAttrs: templates.Attrs{"class": "p-author h-card", "rel": "author"}, BodyAttrs: templates.Attrs{"class": "h-entry"}, }, Article( Header( - H1(Class("p-name"), g.Text(post.Title)), - P(Class("meta"), - Span(Class("date"), - g.Text("Published: "), - A(Class("u-url"), Href(post.URL), postDate(post.Date, "dt-published")), + HGroup( + H1(Class("p-name"), g.Text(post.Title)), + P(Class("meta"), + Span(Class("date"), + g.Text("Published: "), + A(Class("u-url"), Href(post.URL), postDate(post.Date, "dt-published")), + ), + g.Iff(len(post.Commits) > 1, lastUpdated(post)), ), - g.Iff(len(post.Commits) > 1, lastUpdated(post)), ), ), Div(Class("e-content"),