about summary refs log tree commit diff stats
path: root/internal/builder/list.templ
diff options
context:
space:
mode:
Diffstat (limited to 'internal/builder/list.templ')
-rw-r--r--internal/builder/list.templ51
1 files changed, 0 insertions, 51 deletions
diff --git a/internal/builder/list.templ b/internal/builder/list.templ
deleted file mode 100644
index 24cafe8..0000000
--- a/internal/builder/list.templ
+++ /dev/null
@@ -1,51 +0,0 @@
-package builder
-
-import (
-	"website/internal/config"
-	"website/internal/content"
-)
-
-templ tagPage(config config.Config, tag string, posts []content.Post, path string) {
-	@page(config, PageSettings{
-		Title: tag,
-		Path:  path,
-		TitleAttrs: templ.Attributes{
-			"class": "p-author h-card",
-			"rel":   "author",
-		},
-	}) {
-		<div class="filter">
-			<h3 class="filter">#{ tag }</h3>
-			<small>
-				<a href="../">Remove filter</a>
-			</small>
-		</div>
-		@list(posts)
-	}
-}
-
-templ listPage(config config.Config, posts []content.Post, path string) {
-	@page(config, PageSettings{
-		Title: config.Title,
-		TitleAttrs: templ.Attributes{
-			"class": "p-author h-card",
-			"rel":   "author",
-		},
-		Path: path,
-	}) {
-		@list(posts)
-	}
-}
-
-templ list(posts []content.Post) {
-	<ul class="h-feed">
-		for _, post := range posts {
-			<li class="h-entry">
-				<span>
-					@postDate(post.Date)
-				</span>
-				<a class="p-name u-url" href={ templ.SafeURL(post.URL) }>{ post.Title }</a>
-			</li>
-		}
-	</ul>
-}