From 8488643e5efe4c89ee1abe6f05a8857b8ab122d1 Mon Sep 17 00:00:00 2001 From: Samuel W Date: Sun, 25 Feb 2024 15:53:36 +0100 Subject: working thing --- index.templ | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-) (limited to 'index.templ') diff --git a/index.templ b/index.templ index 5da5272..b0faf2d 100644 --- a/index.templ +++ b/index.templ @@ -18,7 +18,7 @@ templ index(ps []Post) {
@posts(ps) @@ -28,10 +28,72 @@ templ index(ps []Post) { } +templ loginPage(csrfToken string) { + + + + + + + + + + + + + + +} + +templ uploadPage(csrfToken string) { + + + + + + + + + + + +
+ + +
+ Description: + +
+ + +
+ + +} + templ posts(posts []Post) { for _, post := range posts {
- { +
+ { +

{ post.Description }

{ post.CreatedAt.Format("2006-01-02 - 15:04") }

-- cgit v1.2.3