From bf96c0bebb1b7938e39cfe47dac9ddda3a562d92 Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Tue, 1 Jun 2021 04:53:48 +0300 Subject: [PATCH] Removed now-unused post_list_item template --- src/templates/src/include/post_list_item.html | 24 ------------------- src/templates/src/landing.html | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 src/templates/src/include/post_list_item.html diff --git a/src/templates/src/include/post_list_item.html b/src/templates/src/include/post_list_item.html deleted file mode 100644 index e43ef2b..0000000 --- a/src/templates/src/include/post_list_item.html +++ /dev/null @@ -1,24 +0,0 @@ -{{/* -This template is intended to display a single post in the context of a forum, the feed, or a similar layout. - -It should be called with PostListItem. -*/}} - -
- -
- - -
- {{ .User.Name }} — {{ timehtml (relativedate .Date) .Date }} -
-
-
- » -
-
diff --git a/src/templates/src/landing.html b/src/templates/src/landing.html index 861efd9..65bf8f2 100644 --- a/src/templates/src/landing.html +++ b/src/templates/src/landing.html @@ -88,7 +88,7 @@ {{ end }} {{ range $post := $posts }} - {{ template "post_list_item.html" $post }} + {{ template "post_list_item" $post }} {{ end }}