Skip to content

Commit

Permalink
set priority to allow decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Nov 4, 2024
1 parent 0ea38c3 commit 47297d0
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions _cms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,18 @@ cms.document({
fields: [
"title: text",
"description: text",
"priority: text",
{
name: "priority",
type: "number",
label: "Priority for sitemap",
description: "1 is highest priority, 0 is lowest priority, and you can set decimal numbers in between like 0.9.",
attributes: {
required: false,
min: 0,
max: 1,
step: 0.1,
},
},
"content: markdown",
]
});
Expand All @@ -137,7 +148,18 @@ cms.document({
fields: [
"title: text",
"description: text",
"priority: text",
{
name: "priority",
type: "number",
label: "Priority for sitemap",
description: "1 is highest priority, 0 is lowest priority, and you can set decimal numbers in between like 0.9.",
attributes: {
required: false,
min: 0,
max: 1,
step: 0.1,
},
},
"content: markdown",
]
});
Expand Down

0 comments on commit 47297d0

Please sign in to comment.