From 93a8843e2e3391459fd333aef9e5c7617608c2b3 Mon Sep 17 00:00:00 2001
From: Brian Picciano
{{ if .Payload.IsDraft }}
@@ -21,19 +25,19 @@
Unique ID
- {{ if eq .Payload.Post.ID "" }}
+ {{ if eq $post.ID "" }}
+ value="{{ $post.ID }}" />
{{ else if .Payload.IsDraft }}
- {{ .Payload.Post.ID }}
-
+ {{ $post.ID }}
+
{{ else }}
- {{ .Payload.Post.ID }}
-
+ {{ $post.ID }}
+
{{ end }}
@@ -45,15 +49,15 @@
name="tags"
type="text"
required
- value="{{- range $i, $tag := .Payload.Post.Tags -}}
+ value="{{- range $i, $tag := $post.Tags -}}
{{- if ne $i 0 }} {{ end }}{{ $tag -}}
{{- end -}}
"/>
- {{ if gt (len .Payload.Tags) 0 }}
+ {{ if $tags }}
Existing tags:
- {{ range $i, $tag := .Payload.Tags }}
+ {{ range $i, $tag := $tags }}
{{ if ne $i 0 }} {{ end }}{{ $tag }}
{{ end }}
@@ -67,7 +71,7 @@
+ value="{{ $post.Series }}" />
@@ -78,7 +82,7 @@
name="title"
type="text"
required
- value="{{ .Payload.Post.Title }}" />
+ value="{{ $post.Title }}" />
@@ -88,7 +92,7 @@
+ value="{{ $post.Description }}" />
@@ -98,7 +102,7 @@