Claude improvements
This commit is contained in:
parent
a86940da30
commit
df2267a968
79 changed files with 2695 additions and 1162 deletions
|
|
@ -1,18 +1,52 @@
|
|||
import sitemap from '@astrojs/sitemap';
|
||||
import { defineConfig } from 'astro/config';
|
||||
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
||||
import rehypeSlug from 'rehype-slug';
|
||||
|
||||
export default defineConfig({
|
||||
site: 'https://schmelczer.dev',
|
||||
trailingSlash: 'always',
|
||||
redirects: {
|
||||
'/writing/': '/articles/',
|
||||
'/writing/[slug]': '/articles/[slug]',
|
||||
},
|
||||
integrations: [
|
||||
sitemap({
|
||||
filter: (page) => !new URL(page).pathname.startsWith('/writing/'),
|
||||
filter: (page) => {
|
||||
const path = new URL(page).pathname;
|
||||
return !path.startsWith('/writing/') && path !== '/404/';
|
||||
},
|
||||
serialize(item) {
|
||||
return { ...item, changefreq: 'monthly' };
|
||||
},
|
||||
}),
|
||||
],
|
||||
image: {
|
||||
service: { entrypoint: 'astro/assets/services/sharp' },
|
||||
},
|
||||
markdown: {
|
||||
shikiConfig: {
|
||||
theme: 'github-light',
|
||||
themes: {
|
||||
light: 'github-light',
|
||||
dark: 'github-dark',
|
||||
},
|
||||
defaultColor: false,
|
||||
wrap: false,
|
||||
},
|
||||
rehypePlugins: [
|
||||
rehypeSlug,
|
||||
[
|
||||
rehypeAutolinkHeadings,
|
||||
{
|
||||
behavior: 'append',
|
||||
properties: {
|
||||
className: ['heading-anchor'],
|
||||
'aria-hidden': 'true',
|
||||
tabIndex: -1,
|
||||
},
|
||||
content: { type: 'text', value: '#' },
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue