summaryrefslogtreecommitdiff
path: root/cmd/cms/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cms/options.go')
-rw-r--r--cmd/cms/options.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/cmd/cms/options.go b/cmd/cms/options.go
index a1843b3..f95f800 100644
--- a/cmd/cms/options.go
+++ b/cmd/cms/options.go
@@ -71,7 +71,6 @@ type {{ .name }} struct {
Author string ` + "`json:" + `"author"` + "`" + `
Category []string ` + "`json:" + `"category"` + "`" + `
ThemeStyle string ` + "`json:" + `"theme"` + "`" + `
- Timestamp string ` + "`json:" + `"timestamp"` + "`" + `
}
func init() {
@@ -98,17 +97,9 @@ func ({{ .initial }} *{{ .name }}) MarshalEditor() ([]byte, error) {
/* EXAMPLE CODE (from post.go, the default content type) */
view, err := editor.Form({{ .initial }},
editor.Field{
- // Take careful note that the first argument to these Input-like methods
+ // Take careful note that the first argument to these Input-like methods
// is the string version of each {{ .name }} struct tag, and must follow this pattern
// for auto-decoding and -encoding reasons.
- View: editor.Input("Slug", {{ .initial }}, map[string]string{
- "label": "URL Path",
- "type": "text",
- "disabled": "true",
- "placeholder": "Will be set automatically",
- }),
- },
- editor.Field{
View: editor.Input("Title", {{ .initial }}, map[string]string{
"label": "{{ .name }} Title",
"type": "text",
@@ -145,12 +136,6 @@ func ({{ .initial }} *{{ .name }}) MarshalEditor() ([]byte, error) {
"light": "Light",
}),
},
- editor.Field{
- View: editor.Input("Timestamp", {{ .initial }}, map[string]string{
- "label": "Publish Date",
- "type": "date",
- }),
- },
)
if err != nil {