diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9e07740..fc2ec1e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,6 +22,7 @@ jobs: cmd: build - name: Push to Build Branch + if: github.ref == 'refs/heads/main' uses: s0/git-publish-subdir-action@develop env: REPO: self diff --git a/package.json b/package.json index a38d746..4e6e08c 100644 --- a/package.json +++ b/package.json @@ -39,5 +39,6 @@ "type": "module", "dependencies": { "svelte-youtube-embed": "^0.3.0" - } + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index 488bdb1..37d7125 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -1,7 +1,6 @@ import { createKitDocsLoader } from '@svelteness/kit-docs' export const prerender = true -export const ssr = false export const load = createKitDocsLoader({ sidebar: { diff --git a/src/routes/404/+page.svelte b/src/routes/404/+page.svelte index d59c5a0..aba54a0 100644 --- a/src/routes/404/+page.svelte +++ b/src/routes/404/+page.svelte @@ -1,33 +1,7 @@
@@ -43,7 +17,7 @@

- {@html getRandomFlavorQuote()} + {@html flavorQuote} diff --git a/src/routes/404/+page.ts b/src/routes/404/+page.ts new file mode 100644 index 0000000..4747320 --- /dev/null +++ b/src/routes/404/+page.ts @@ -0,0 +1,39 @@ +import type { PageLoad } from './$types' + +export const ssr = false + +const flavorQuotes = [ + `Uh oh!`, + `Time to fire up the ol' debugger!`, + `Your item displays are sad 🥺`, + `Skill Issue.`, + `Should'a seen that one comming...`, + `Snaviewavie did an oopsie poopsie x3`, + `We to a little trolling.`, + `execute run execute run execute run execute run say This is fine.`, + `This is why we can't have nice things. :(`, + `Have you tried turning it off and on again?`, + `What if I put my command block next to yours? Haha just kidding... Unless?`, + `If at first you don't succeed, try, try again!`, + // We do a little trolling in binary. + `B:01010111 01100101 00100000 01100100 01101111 00100000 01100001 00100000 01101100 01101001 01110100 01110100 01101100 01100101 00100000 01110100 01110010 01101111 01101100 01101100 01101001 01101110 01100111`, + `I've decided to stop working for today. Try again tomorrow!`, + `Every time you see this error message, a developer vanishes in a puff of binary.`, + `"Flavor Text"? I've never tasted text before...`, + `( ͡° ͜ʖ ͡°) nice 404 page you got there.`, + `Some day you'll learn. But until then, I control the cheese.`, + `Please deposit 5 coins!`, + `Failed to find global 'pandemic'.`, + `I'm sorry, Dave. I'm afraid I can't do that.`, + `https://xkcd.com/221/` +] + +function getRandomFlavorQuote() { + return flavorQuotes[Math.floor(Math.random() * flavorQuotes.length)] +} + +export const load: PageLoad = () => { + return { + flavorQuote: getRandomFlavorQuote() + } +}