mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
add catppuccin
This commit is contained in:
@ -7,9 +7,8 @@ import RUAThemeProvider from 'components/pages/theme-provider';
|
||||
import fonts from 'lib/fonts';
|
||||
import { Metadata } from 'next';
|
||||
import 'styles/globals.css';
|
||||
import 'styles/prism-one-dark.css';
|
||||
import 'styles/prism-one-light.css';
|
||||
import 'styles/rua.css';
|
||||
import '@catppuccin/highlightjs/sass/catppuccin.variables.scss';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'RUA',
|
||||
@ -41,7 +40,7 @@ export default function RootLayout({
|
||||
crossOrigin=""
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<body className="latte">
|
||||
<RUAThemeProvider>
|
||||
<div className="flex flex-col min-h-[100vh]">
|
||||
<HeadBar />
|
||||
|
@ -1,4 +1,3 @@
|
||||
import rehypePrism from '@mapbox/rehype-prism';
|
||||
import clsx from 'clsx';
|
||||
import components from 'components/mdx/components';
|
||||
import data from 'content/mdx-data';
|
||||
@ -9,6 +8,7 @@ import dynamic from 'next/dynamic';
|
||||
import { notFound } from 'next/navigation';
|
||||
import rehypeSlug from 'rehype-slug';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
import rehypeHighlight from 'rehype-highlight';
|
||||
import { Post } from 'types';
|
||||
|
||||
const PostToc = dynamic(() => import('components/post/post-toc'));
|
||||
@ -46,7 +46,7 @@ const Page = async ({
|
||||
mdxOptions: {
|
||||
remarkPlugins: [remarkGfm],
|
||||
rehypePlugins: [
|
||||
[rehypePrism, { alias: { vue: 'xml' }, ignoreMissing: true }],
|
||||
[rehypeHighlight, { alias: { vue: 'xml' }, ignoreMissing: true }],
|
||||
rehypeSlug,
|
||||
],
|
||||
},
|
||||
@ -70,7 +70,6 @@ const Page = async ({
|
||||
|
||||
<article id="post-content">
|
||||
{mdxSource.content}
|
||||
|
||||
<PostCommnetLine />
|
||||
<div className="mt-4">
|
||||
<PostComment />
|
||||
|
Reference in New Issue
Block a user