self serve katex css

This commit is contained in:
Timothy Lin 2022-02-13 23:11:20 +08:00
parent aa1ba4672c
commit e5a88d6261
3 changed files with 3 additions and 8 deletions

View File

@ -6,11 +6,11 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
const ContentSecurityPolicy = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app;
style-src 'self' 'unsafe-inline' cdn.jsdelivr.net;
style-src 'self' 'unsafe-inline';
img-src * blob: data:;
media-src 'none';
connect-src *;
font-src 'self' cdn.jsdelivr.net;
font-src 'self';
frame-src giscus.app
`

View File

@ -1,5 +1,6 @@
import '@/css/tailwind.css'
import '@/css/prism.css'
import 'katex/dist/katex.css'
import '@fontsource/inter/variable-full.css'

View File

@ -22,12 +22,6 @@ class MyDocument extends Document {
<meta name="msapplication-TileColor" content="#000000" />
<meta name="theme-color" content="#000000" />
<link rel="alternate" type="application/rss+xml" href="/feed.xml" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css"
integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc"
crossOrigin="anonymous"
/>
</Head>
<body className="bg-white text-black antialiased dark:bg-gray-900 dark:text-white">
<Main />