diff --git a/.prettierrc.json b/.prettierrc.json index 59e3dba..31e8b1b 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -16,7 +16,8 @@ "files": ["*.md", "*.mdx"], "options": { "singleQuote": false, - "tabWidth": 2 + "tabWidth": 2, + "useTabs": false } }, { diff --git a/astro.config.mjs b/astro.config.mjs index b6bdcac..de2f847 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,12 +9,18 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ markdown: { - remarkPlugins: [remarkReadingTime], shikiConfig: { theme: 'nord', langs: [], wrap: true, }, }, - integrations: [mdx(), tailwind(), preact({ compat: true }), astroImageTools], + integrations: [ + mdx({ + remarkPlugins: [remarkReadingTime], + }), + tailwind(), + preact({ compat: true }), + astroImageTools, + ], }); diff --git a/public/assets/images/cover/rakkan.jpg b/public/assets/images/cover/rakkan.jpg new file mode 100644 index 0000000..a09330f Binary files /dev/null and b/public/assets/images/cover/rakkan.jpg differ diff --git a/public/assets/images/cover/vim-polisher.jpg b/public/assets/images/cover/vim-polisher.jpg new file mode 100644 index 0000000..dd3be80 Binary files /dev/null and b/public/assets/images/cover/vim-polisher.jpg differ diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx index e7585a6..39b6542 100644 --- a/src/components/Banner.tsx +++ b/src/components/Banner.tsx @@ -5,7 +5,7 @@ import type { ComponentChild, FunctionalComponent } from 'preact'; interface Props { class?: string; children: ComponentChild; - summary: string; + summary?: string; open?: boolean; } diff --git a/src/components/ColorStack.tsx b/src/components/ColorStack.tsx index bbd3dfd..3f5be9f 100644 --- a/src/components/ColorStack.tsx +++ b/src/components/ColorStack.tsx @@ -7,7 +7,7 @@ interface Props { export const ColorStack: FunctionalComponent = ({ children, ...props }) => { return (
{children} diff --git a/src/components/Pullquote.tsx b/src/components/Pullquote.tsx index 6503dda..6ed7aca 100644 --- a/src/components/Pullquote.tsx +++ b/src/components/Pullquote.tsx @@ -11,6 +11,7 @@ interface Props extends JSX.HTMLAttributes { lang?: string; source?: string; sourceUrl?: string; + text: string; } export const Pullquote: FunctionalComponent = ({ @@ -20,13 +21,14 @@ export const Pullquote: FunctionalComponent = ({ lang = 'en', source, sourceUrl, + text, ...props }) => { - const classes = cx('pullquote p-9 text-center', className); + const classes = cx('pullquote mbe-10 p-9 text-center', className); return (
- {children} +

{(author || source) && (