From 83274d88f4446ffe9e5d63d41561eb775fea4c7e Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sun, 9 Oct 2016 02:02:34 -0700 Subject: updating import paths --- content/post.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'content') 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"` @@ -53,6 +54,13 @@ func (p *Post) MarshalEditor() ([]byte, error) { "placeholder": "Add the content of your post here", }), }, + 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", -- cgit v1.2.3