Skip to content

Commit

Permalink
Added time format
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersAskeland committed Jul 1, 2024
1 parent cfd665e commit 7cd396b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ collections:
slug: "" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM-DD", format: "YYYY-MM-DD"}
- {label: "Publish Date", name: "date", widget: "datetime", time_format: true, date_format: "YYYY-MM-DD", format: "YYYY-MM-DD"}
- {label: "Author", name: "author", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}

Expand Down

0 comments on commit 7cd396b

Please sign in to comment.