diff options
Diffstat (limited to 'content/post.go')
-rw-r--r-- | content/post.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/content/post.go b/content/post.go index 5b98253..14f3330 100644 --- a/content/post.go +++ b/content/post.go @@ -16,7 +16,6 @@ type Post struct { Author string `json:"author"` Category []string `json:"category"` ThemeStyle string `json:"theme"` - Timestamp string `json:"timestamp"` } func init() { @@ -42,14 +41,6 @@ func (p *Post) Editor() *editor.Editor { return &p.editor } func (p *Post) MarshalEditor() ([]byte, error) { view, err := editor.Form(p, editor.Field{ - View: editor.Input("Slug", p, map[string]string{ - "label": "URL Path", - "type": "text", - "disabled": "true", - "placeholder": "Will be set automatically", - }), - }, - editor.Field{ View: editor.Input("Title", p, map[string]string{ "label": "Post Title", "type": "text", @@ -86,12 +77,6 @@ func (p *Post) MarshalEditor() ([]byte, error) { "light": "Light", }), }, - editor.Field{ - View: editor.Input("Timestamp", p, map[string]string{ - "label": "Publish Date", - "type": "date", - }), - }, ) if err != nil { |