diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-02 01:43:27 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-02 01:43:27 -0700 |
commit | 5ab38057f605a8655e111cb5b3f657973a661832 (patch) | |
tree | 0185436a1014ca5c9fe2bd65a84a5494d55080ec /content/post.go | |
parent | 0295a1486428daf4539b019a5ec68a0562ec6712 (diff) |
adding default fields to Item and removing from post.go and template
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 { |