From 69de76cb32cfd638672d4d5846d0659bf102316f Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 17 May 2022 15:54:20 -0600 Subject: Add asset file upload form, plus related necessary refactors --- srv/src/api/tpl/post.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'srv/src/api/tpl/post.html') diff --git a/srv/src/api/tpl/post.html b/srv/src/api/tpl/post.html index 22a5b97..c5c3c96 100644 --- a/srv/src/api/tpl/post.html +++ b/srv/src/api/tpl/post.html @@ -2,43 +2,43 @@

- {{ .Title }} + {{ .Payload.Title }}

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

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

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

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

{{ end }} -- cgit v1.2.3