We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 280f397 commit 408a585Copy full SHA for 408a585
quartz/components/scripts/randomPage.inline.ts
@@ -6,6 +6,8 @@ function getRandomInt(max: number) {
6
7
function isValidUrl(newSlug: string, oldSlug: String) {
8
return oldSlug !== newSlug && !newSlug.includes("/contributing/")
9
+ // to exclude a folder add: && !newSlug.includes("/folder-name/")
10
+ // this can be repeated
11
}
12
13
async function navigateToRandomPage() {
0 commit comments