Mirror of source code of my personal website hosted on Vercel, https://youwen.dev
Find a file
2024-04-23 00:52:07 -07:00
.github ci(check-spelling): add more words to exclude list 2024-04-07 02:29:39 -07:00
.vscode chore: add .vscode with configuration for linters 2024-04-12 16:45:19 -07:00
blog/2024 feat: add vim manifesto draft 2024-04-23 00:52:07 -07:00
src feat: add vim manifesto draft 2024-04-23 00:52:07 -07:00
static feat: add file system based static generation 2024-04-07 16:52:54 -07:00
tests initial commit 2024-04-02 17:35:26 -07:00
.eslintignore initial commit 2024-04-02 17:35:26 -07:00
.eslintrc.cjs initial commit 2024-04-02 17:35:26 -07:00
.gitignore fix: removed gpg component that was breaking everything 2024-04-05 23:34:56 -07:00
.npmrc initial commit 2024-04-02 17:35:26 -07:00
.prettierignore initial commit 2024-04-02 17:35:26 -07:00
.prettierrc initial commit 2024-04-02 17:35:26 -07:00
components.json chore: rename app.css to app.pcss 2024-04-06 00:17:08 -07:00
LICENSE chore: update license and readme 2024-04-03 16:30:36 -07:00
package.json feat: add syntax highlighting for code 2024-04-12 23:44:39 -07:00
playwright.config.ts initial commit 2024-04-02 17:35:26 -07:00
pnpm-lock.yaml feat: add syntax highlighting for code 2024-04-12 23:44:39 -07:00
post.schema.json feat: add syntax highlighting for code 2024-04-12 23:44:39 -07:00
postcss.config.js chore: format shadcn components 2024-04-04 15:34:04 -07:00
README.md docs: update readme with blog instructions 2024-04-13 00:45:00 -07:00
svelte.config.js chore: switch to adapter vercel and trust dependency postinstalls 2024-04-04 12:35:00 -07:00
tailwind.config.js style: add some nicer fonts, fix dark mode 2024-04-03 16:22:43 -07:00
tsconfig.json initial commit 2024-04-02 17:35:26 -07:00
vite.config.ts feat: add file system based static generation 2024-04-07 16:52:54 -07:00

coredump

pnpm

My personal website and its associated blog. Written in SvelteKit using TailwindCSS and components from shadcn-svelte.

Running locally

Install pnpm, clone and cd into the repository, then run:

pnpm install

# for development:
pnpm dev

# for production:
pnpm build
pnpm preview

Adding posts

To add posts, create a directory in /blog. The top level subdirectories should be the year, but there's no hard rules on what the rest of the subdirectories will be. The blog will build itself based on the file structure in /blog/[year]/**, and posts will be located wherever there exists content.md + post.toml files. Check post.schema.json for the specification of the post.toml format. Finally, you can add a .blogignore file to any directory in /blog to exclude it from static rendering (useful for work-in-progress blog posts).

License

The website's source code is licensed under the MIT License. The contents of my blog are licensed under CC BY-NC-SA 4.0.