From 48de0f15a493d104501b055a0b7aa88fff101b19 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 25 Oct 2016 11:46:04 -0700 Subject: updating content type generator template and modifying default post --- content/post.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'content') 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", -- cgit v1.2.3