refactor: yay fixed stuffs

This commit is contained in:
dusk 2024-08-08 04:46:38 +03:00
parent 29e5af56eb
commit b23d328937
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
10 changed files with 40 additions and 7 deletions

9
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"tailwindCSS.emmetCompletions": true,
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"strings": "on"
}
}

BIN
bun.lockb

Binary file not shown.

View File

@ -16,6 +16,7 @@
"@sveltejs/adapter-static": "^3.0.2", "@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.5.20", "@sveltejs/kit": "^2.5.20",
"@sveltejs/vite-plugin-svelte": "^3.1.1", "@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tailwindcss/typography": "^0.5.14",
"@types/eslint": "^8.56.11", "@types/eslint": "^8.56.11",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"eslint": "^9.8.0", "eslint": "^9.8.0",
@ -39,5 +40,8 @@
"dependencies": { "dependencies": {
"rehype-autolink-headings": "^7.1.0", "rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0" "rehype-slug": "^6.0.0"
} },
"trustedDependencies": [
"svelte-preprocess"
]
} }

View File

@ -1,5 +1,5 @@
<script> <script lang="ts">
import "../app.postcss"; import "../app.css";
</script> </script>
<slot /> <slot />

View File

@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import type { PostData } from './+page.js'; import type { PostData } from './+page.ts';
export let data; export let data;

View File

@ -0,0 +1,14 @@
<script lang="ts">
import "../../app.css";
export let title;
export let author;
export let date;
</script>
<div class="prose lg:prose-lg">
<h1 class="font-mono">{ title }</h1>
<ul>on: { date }</ul>
<ul>by: { author }</ul>
<slot/>
</div>

View File

@ -2,6 +2,7 @@
title: Hello World title: Hello World
author: Jeff author: Jeff
date: 2022-05-27 date: 2022-05-27
layout: blogpost
excerpt: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi eget massa sit amet arcu varius lacinia nec quis lacus. excerpt: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi eget massa sit amet arcu varius lacinia nec quis lacus.
--- ---

View File

@ -18,7 +18,10 @@ const config = {
rehypeAutolinkHeadings, rehypeAutolinkHeadings,
], ],
smartypants: { dashes: 'oldschool' }, smartypants: { dashes: 'oldschool' },
layout: './src/routes/+layout.svelte', layout: {
_: './src/routes/+layout.svelte',
blogpost: './src/routes/posts/_layout.svelte',
},
}), }),
], ],

View File

@ -1,9 +1,11 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {
content: ['./src/**/*.{html,js,svelte,ts}'], content: ['./src/**/*.{html,js,svelte,ts,md}'],
theme: { theme: {
extend: {}, extend: {},
}, },
plugins: [], plugins: [
require('@tailwindcss/typography')
],
} }