diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-09 02:02:34 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-09 02:02:34 -0700 |
commit | 83274d88f4446ffe9e5d63d41561eb775fea4c7e (patch) | |
tree | be5f66d2e650eda2167dadee1820c75f747e6bd6 /content | |
parent | ed14dff0ee6f53afd95550140ee32e7aa76a0441 (diff) |
updating import paths
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", |