From 8d83d6f5455839ff4c200e54297c83d961dfdd44 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sat, 18 May 2024 22:40:13 -0700 Subject: [PATCH] starting to build out how to view articles --- internal/views/articles/list.templ | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/internal/views/articles/list.templ b/internal/views/articles/list.templ index f26095f..653047b 100644 --- a/internal/views/articles/list.templ +++ b/internal/views/articles/list.templ @@ -1,15 +1,27 @@ package articles import ( - "git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout" - "git.jamestombleson.com/jtom38/newsbot-portal/internal/models" + "git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout" + "git.jamestombleson.com/jtom38/newsbot-portal/internal/models" ) templ List(model models.ListArticlesViewModel) { - @layout.WithTemplate() { - for _, item := range model.Items { - { item.Title } - } -
hi
- } -} \ No newline at end of file + @layout.WithTemplate() { + for _, item := range model.Items { +
+
+
+ +
+
+
+
+ +
+
+
+ } + } +}