diff --git a/layouts/tweets/list.html b/layouts/tweets/list.html new file mode 100644 index 0000000..07ecbc5 --- /dev/null +++ b/layouts/tweets/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} +
+ + + {{ $paginator := .Paginate .Pages.ByPublishDate.Reverse 100 }} + {{ range $paginator.Pages }} + {{ .Render "page_summary" }} + {{ end }} + + {{ partial "pagination.html" . }} +
+{{ end }} diff --git a/layouts/tweets/page_summary.html b/layouts/tweets/page_summary.html new file mode 100644 index 0000000..4cf8edf --- /dev/null +++ b/layouts/tweets/page_summary.html @@ -0,0 +1,18 @@ +
+ {{ .Content }} + + {{- if .Date -}} + {{/* TODO: Include time in this date */}} + {{- partial "page/date.html" (dict "page" . "style" "datetime") -}} + {{- end }} + +
+ {{ T "favorites" }} + {{ .Params.favoriteCount }} +
+ +
+ {{ T "retweets" }} + {{ .Params.retweetCount }} +
+