summaryrefslogtreecommitdiff
path: root/content/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/post.go')
-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",