diff --git a/src/lib/components/img.svelte b/src/lib/components/img.svelte index c69eda3..3ea46a8 100644 --- a/src/lib/components/img.svelte +++ b/src/lib/components/img.svelte @@ -11,4 +11,4 @@ }) - + diff --git a/src/routes/(blog)/what-are-domain-hacks/index.svx b/src/routes/(blog)/what-are-domain-hacks/index.svx index 1ccebd7..70e6068 100644 --- a/src/routes/(blog)/what-are-domain-hacks/index.svx +++ b/src/routes/(blog)/what-are-domain-hacks/index.svx @@ -24,7 +24,7 @@ An advantage to using a domain hack is that your domain is much shorter and ther Finding a good domain isn't always easy, so I've created a tool hosted on [Repl.it](https://repl.it) that helps you find domain hacks [![Domain Hack Generator](domain-hack-generator.png)](https://repl.it/talk/share/Domain-Hack-Finder/15778) - + At the moment, it uses every TLD currently in existence, which may not be what you want since some top level domains cannot be used by most people as they require you to live in a certain area or work for a certain organization. You can customize it by adding or removing from the tlds.txt file. diff --git a/src/routes/(main)/blog/+page.ts b/src/routes/(main)/blog/+page.ts index 167f0d1..78b46ba 100644 --- a/src/routes/(main)/blog/+page.ts +++ b/src/routes/(main)/blog/+page.ts @@ -3,7 +3,7 @@ import type { Load } from '@sveltejs/kit' export const prerender = true export const load: Load = async ({ fetch }) => { - const posts = await fetch(`/blog.json`).then((r: Response) => r.json()) + const posts = await fetch('/blog-preview.json').then((r: Response) => r.json()) return { posts, diff --git a/src/routes/blog-preview.json/+server.ts b/src/routes/blog-preview.json/+server.ts new file mode 100644 index 0000000..0440ccc --- /dev/null +++ b/src/routes/blog-preview.json/+server.ts @@ -0,0 +1,10 @@ +import { json, type RequestHandler } from '@sveltejs/kit' +import { getPosts } from '../blog.json/preview' + +export const prerender = true + +export const GET: RequestHandler = async () => { + const posts = await getPosts() + + return json(posts) +} diff --git a/src/routes/retro/+page.ts b/src/routes/retro/+page.ts index 34a9b3a..694417f 100644 --- a/src/routes/retro/+page.ts +++ b/src/routes/retro/+page.ts @@ -3,7 +3,7 @@ import type { Load } from '@sveltejs/kit' export const prerender = true export const load: Load = async ({ fetch }) => { - const posts = await fetch('/blog.json').then((r: Response) => r.json()) + const posts = await fetch('/blog-preview.json').then((r: Response) => r.json()) const status = await fetch('/status.json').then((r: Response) => r.json()) return { diff --git a/src/routes/retro/app.css b/src/routes/retro/app.css index 3436f33..004c09d 100644 --- a/src/routes/retro/app.css +++ b/src/routes/retro/app.css @@ -57,8 +57,10 @@ h2 { image-rendering: pixelated; z-index: 2147483647; position: absolute; - cursor: pointer; + + /* default idle sprite */ + background-position: -96px -96px; } #main-title:after {