initial commit - added base, need to fix templ errors
This commit is contained in:
12
templates/home.templ
Normal file
12
templates/home.templ
Normal file
@@ -0,0 +1,12 @@
|
||||
package templates
|
||||
|
||||
templ HomePage(data models.Data) {
|
||||
@Layout(data.Title) {
|
||||
@Header(data.Title, data.Subtitle)
|
||||
@Nav()
|
||||
<main>
|
||||
@PostList(data.Posts, data.CurrentPage, data.TotalPages)
|
||||
</main>
|
||||
@Footer()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user