summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-25 11:46:04 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-25 11:46:04 -0700
commit48de0f15a493d104501b055a0b7aa88fff101b19 (patch)
tree4ce70961c292619c9fe0251ca9a921453b12f6aa /content
parent09b06ed0e0188b8559620e4e0c4f7e54599044af (diff)
updating content type generator template and modifying default post
Diffstat (limited to 'content')
-rw-r--r--content/post.go16
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",