summaryrefslogtreecommitdiff
path: root/cmd/ponzu/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r--cmd/ponzu/options.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go
index 8f33a78..19b61bb 100644
--- a/cmd/ponzu/options.go
+++ b/cmd/ponzu/options.go
@@ -75,6 +75,7 @@ type {{ .name }} struct {
Title string ` + "`json:" + `"title"` + "`" + `
Content string ` + "`json:" + `"content"` + "`" + `
Author string ` + "`json:" + `"author"` + "`" + `
+ Picture string ` + "`json:" + `"picture"` + "`" + `
Category []string ` + "`json:" + `"category"` + "`" + `
ThemeStyle string ` + "`json:" + `"theme"` + "`" + `
}
@@ -113,7 +114,7 @@ func ({{ .initial }} *{{ .name }}) MarshalEditor() ([]byte, error) {
}),
},
editor.Field{
- View: editor.Textarea("Content", {{ .initial }}, map[string]string{
+ View: editor.Richtext("Content", {{ .initial }}, map[string]string{
"label": "Content",
"placeholder": "Add the content of your {{ .name }} here",
}),
@@ -126,6 +127,12 @@ func ({{ .initial }} *{{ .name }}) MarshalEditor() ([]byte, error) {
}),
},
editor.Field{
+ View: editor.File("Picture", {{ .initial }}, map[string]string{
+ "label": "Author Photo",
+ "placeholder": "Upload a profile picture for the author",
+ }),
+ },
+ editor.Field{
View: editor.Checkbox("Category", {{ .initial }}, map[string]string{
"label": "{{ .name }} Category",
}, map[string]string{