From 4c04177c05355ddb92d3d31a4c5cfbaa86555a13 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 14 May 2022 16:14:11 -0600 Subject: Move template rendering logic into api package --- srv/src/tpl/html/base.html | 65 ---------------------------------------------- srv/src/tpl/html/post.html | 48 ---------------------------------- 2 files changed, 113 deletions(-) delete mode 100644 srv/src/tpl/html/base.html delete mode 100644 srv/src/tpl/html/post.html (limited to 'srv/src/tpl/html') diff --git a/srv/src/tpl/html/base.html b/srv/src/tpl/html/base.html deleted file mode 100644 index bf81032..0000000 --- a/srv/src/tpl/html/base.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - -
- - - - {{ template "body" . }} - -
-

- Unless otherwised specified, all works are licensed under the - WTFPL. -

-
- -
- - - - - diff --git a/srv/src/tpl/html/post.html b/srv/src/tpl/html/post.html deleted file mode 100644 index 22a5b97..0000000 --- a/srv/src/tpl/html/post.html +++ /dev/null @@ -1,48 +0,0 @@ -{{ define "body" }} - -
-

- {{ .Title }} -

-
- {{ .PublishedAt.Format "2006-01-02" }} -  •  - {{ if not .LastUpdatedAt.IsZero }} - (Updated {{ .LastUpdatedAt.Format "2006-01-02" }}) -  •  - {{ end }} - {{ .Description }} -
-
- -{{ if (or .SeriesPrevious .SeriesNext) }} -

- This post is part of a series:
- {{ if .SeriesPrevious }} - Previously: {{ .SeriesPrevious.Title }}
- {{ end }} - {{ if .SeriesNext }} - Next: {{ .SeriesNext.Title }}
- {{ end }} -

-{{ end }} - -
- {{ .Body }} -
- -{{ if (or .SeriesPrevious .SeriesNext) }} -

- If you liked this post, consider checking out other posts in the series:
- {{ if .SeriesPrevious }} - Previously: {{ .SeriesPrevious.Title }}
- {{ end }} - {{ if .SeriesNext }} - Next: {{ .SeriesNext.Title }}
- {{ end }} -

-{{ end }} - -{{ end }} - -{{ template "base.html" . }} -- cgit v1.2.3