File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ if (!sprint) {
11
11
throw new Error (` Sprint entry "${slug }" not found ` );
12
12
}
13
13
14
+ if (sprint .body && / ^ #+ \s / m .test (sprint .body )) {
15
+ throw new Error (` No headlines allowed in description. [${sprint .id }] ` );
16
+ }
17
+
18
+
14
19
const { data, body } = sprint ;
15
20
16
21
// <a href={`/sprints/${slug}`} id={slug} class="text-blue-600 hover:text-blue-800 hover:underline"></a>
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ if (!entry) {
16
16
throw new Error (' Could not find page entry.' );
17
17
}
18
18
19
- const sprints = await getCollection (" sprints" , ({ data }) => {
19
+ const sprints = ( await getCollection (" sprints" , ({ data }) => {
20
20
return import .meta .env .MODE === " production" ? data .draft !== true : true ;
21
- });
21
+ })). sort (( a , b ) => a . id . localeCompare ( b . id )) ;
22
22
23
23
---
24
24
You can’t perform that action at this time.
0 commit comments