diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/post.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/content/post.go b/content/post.go index efa83e8..e08106c 100644 --- a/content/post.go +++ b/content/post.go @@ -3,7 +3,7 @@ package content import ( "fmt" - "github.com/nilslice/cms/management/editor" + "github.com/bosssauce/ponzu/management/editor" ) // Post is the generic content struct @@ -13,6 +13,7 @@ type Post struct { Title string `json:"title"` Content string `json:"content"` + Photo string `json:"photo"` Author string `json:"author"` Category []string `json:"category"` ThemeStyle string `json:"theme"` @@ -54,6 +55,13 @@ func (p *Post) MarshalEditor() ([]byte, error) { }), }, editor.Field{ + View: editor.File("Photo", p, map[string]string{ + "label": "Author Photo", + "type": "file", + "placeholder": "Select a file to upload.", + }), + }, + editor.Field{ View: editor.Input("Author", p, map[string]string{ "label": "Author", "type": "text", |