Skip to content

Commit

Permalink
correct content language field
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwei committed Jan 7, 2025
1 parent ea51537 commit 814c50d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/domain/content/entity/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (c *Content) SortContent(contentType string) error {
err = json.Unmarshal(j, &post)
}
if err != nil {
c.Log.Errorln("Error decoding json while sorting", contentType, ":", err)
c.Log.Errorln("Error decoding json while sorting", contentType, ":", err, string(j))
continue
}

Expand Down
4 changes: 2 additions & 2 deletions internal/domain/content/valueobject/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func (s *Site) MarshalEditor() ([]byte, error) {
}),
},
editor.Field{
View: editor.Input("DefaultLanguage", s, map[string]string{
"label": "DefaultLanguage",
View: editor.Input("DefaultContentLanguage", s, map[string]string{
"label": "DefaultContentLanguage",
"type": "text",
"placeholder": "Enter the DefaultLanguage here",
}),
Expand Down
2 changes: 1 addition & 1 deletion internal/interfaces/cli/vercurr.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package cli
var CurrentVersion = Version{
Major: 0,
Minor: 1,
PatchLevel: 4,
PatchLevel: 5,
Suffix: "",
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.4",
"version": "0.1.5",
"name": "Hugoverse",
"description": "Headless CMS for Hugo",
"author": "sunwei",
Expand Down

0 comments on commit 814c50d

Please sign in to comment.