mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
✨ feat: add github repository card extension feature
- remove astro-compress to improve build speed - add target and rel attributes to footer links - rename unocss opacity utility from 'opacity' to 'op' - update PostList component's page logic from 'isTag' to 'isHome' - create extend.css file for markdown extended features - reorganize and sort styles in heti.css - fix inline code wrapping issue
This commit is contained in:
parent
266e5833e6
commit
2ddae5631e
15 changed files with 407 additions and 479 deletions
|
@ -1,7 +1,6 @@
|
|||
import mdx from '@astrojs/mdx'
|
||||
import partytown from '@astrojs/partytown'
|
||||
import sitemap from '@astrojs/sitemap'
|
||||
import compress from 'astro-compress'
|
||||
import robotsTxt from 'astro-robots-txt'
|
||||
import { defineConfig } from 'astro/config'
|
||||
import rehypeExternalLinks from 'rehype-external-links'
|
||||
|
@ -14,6 +13,7 @@ import { themeConfig } from './src/config'
|
|||
import { langMap } from './src/i18n/config'
|
||||
import { rehypeImgToFigure } from './src/plugins/rehype-img-to-figure.mjs'
|
||||
import { remarkAdmonitions } from './src/plugins/remark-admonitions.mjs'
|
||||
import { remarkGithubCard } from './src/plugins/remark-github-card.mjs'
|
||||
import { remarkReadingTime } from './src/plugins/remark-reading-time.mjs'
|
||||
|
||||
const url = themeConfig.site.url
|
||||
|
@ -59,14 +59,14 @@ export default defineConfig({
|
|||
}),
|
||||
sitemap(),
|
||||
robotsTxt(),
|
||||
compress(),
|
||||
],
|
||||
markdown: {
|
||||
remarkPlugins: [
|
||||
remarkDirective,
|
||||
remarkMath,
|
||||
remarkReadingTime,
|
||||
remarkAdmonitions,
|
||||
remarkGithubCard,
|
||||
remarkReadingTime,
|
||||
],
|
||||
rehypePlugins: [
|
||||
rehypeSlug,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue