diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-25 11:46:04 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-25 11:46:04 -0700 |
commit | 48de0f15a493d104501b055a0b7aa88fff101b19 (patch) | |
tree | 4ce70961c292619c9fe0251ca9a921453b12f6aa /content | |
parent | 09b06ed0e0188b8559620e4e0c4f7e54599044af (diff) |
updating content type generator template and modifying default post
Diffstat (limited to 'content')
-rw-r--r-- | content/post.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/content/post.go b/content/post.go index 08b831d..d121ed7 100644 --- a/content/post.go +++ b/content/post.go @@ -11,12 +11,12 @@ type Post struct { Item editor editor.Editor - Title string `json:"title"` - Content string `json:"content"` - Photo string `json:"photo"` - Author string `json:"author"` - Category []string `json:"category"` - ThemeStyle string `json:"theme"` + Title string `json:"title"` + Content string `json:"content"` + Photo string `json:"photo"` + Author string `json:"author"` + Category []string `json:"category"` + Theme string `json:"theme"` } func init() { @@ -55,7 +55,7 @@ func (p *Post) MarshalEditor() ([]byte, error) { }), }, editor.Field{ - View: editor.File("Picture", p, map[string]string{ + View: editor.File("Photo", p, map[string]string{ "label": "Author Photo", "placeholder": "Upload a profile picture for the author", }), @@ -73,7 +73,7 @@ func (p *Post) MarshalEditor() ([]byte, error) { }), }, editor.Field{ - View: editor.Select("ThemeStyle", p, map[string]string{ + View: editor.Select("Theme", p, map[string]string{ "label": "Theme Style", }, map[string]string{ "dark": "Dark", |