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) {
1111 throw new Error (` Sprint entry "${slug }" not found ` );
1212}
1313
14+ if (sprint .body && / ^ #+ \s / m .test (sprint .body )) {
15+ throw new Error (` No headlines allowed in description. [${sprint .id }] ` );
16+ }
17+
18+
1419const { data, body } = sprint ;
1520
1621// <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) {
1616 throw new Error (' Could not find page entry.' );
1717}
1818
19- const sprints = await getCollection (" sprints" , ({ data }) => {
19+ const sprints = ( await getCollection (" sprints" , ({ data }) => {
2020 return import .meta .env .MODE === " production" ? data .draft !== true : true ;
21- });
21+ })). sort (( a , b ) => a . id . localeCompare ( b . id )) ;
2222
2323---
2424
You can’t perform that action at this time.
0 commit comments