refactor: yay fixed stuffs
This commit is contained in:
parent
29e5af56eb
commit
b23d328937
9
.vscode/settings.json
vendored
Normal file
9
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"tailwindCSS.emmetCompletions": true,
|
||||||
|
"files.associations": {
|
||||||
|
"*.css": "tailwindcss"
|
||||||
|
},
|
||||||
|
"editor.quickSuggestions": {
|
||||||
|
"strings": "on"
|
||||||
|
}
|
||||||
|
}
|
@ -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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script lang="ts">
|
||||||
import "../app.postcss";
|
import "../app.css";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<slot />
|
<slot />
|
@ -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;
|
||||||
|
|
||||||
|
14
src/routes/posts/_layout.svelte
Normal file
14
src/routes/posts/_layout.svelte
Normal 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>
|
@ -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.
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -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',
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user