From a4a83e4b549e858d4f8c821591bfb74706d846e8 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 28 May 2022 14:45:09 +0530 Subject: Moved the blog to new repository --- src/web/templates/views/posts.html | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/web/templates/views/posts.html (limited to 'src/web/templates/views/posts.html') diff --git a/src/web/templates/views/posts.html b/src/web/templates/views/posts.html new file mode 100644 index 0000000..e992564 --- /dev/null +++ b/src/web/templates/views/posts.html @@ -0,0 +1,67 @@ +{{ define "views/posts.html" }} + + + + + + + + + + Index Page + + + + {{ template "partials/navbar.html" .}} + {{ template "partials/tags_menu.html" .}} +
+
+ + Posts to show per page: + {{ range .LimitOptions }} + + {{ . }} + + {{ end }} + + + Currently sorting by {{ if .SortByOldest }}oldest{{ else }}newest{{ end }} first. + + + Sort by {{ if .SortByOldest }}newest{{ else }}oldest{{ end }} first? + + +
+
+ {{ range .Posts }} +
+ + {{ .Title }} + + + +
+ {{ end }} +
+ +
+ + +{{ end }} -- cgit v1.2.3