-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
61 lines (55 loc) · 1.58 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import tailwindTypography from '@tailwindcss/typography'
import tailwindLineClamp from '@tailwindcss/line-clamp'
import redirect from './data/redirect'
export default defineNuxtConfig({
modules: ['@nuxt/content', '@nuxtjs/tailwindcss'],
css: [
'~/assets/fonts/cyly/cyly.css', // font
],
content: {
documentDriven: {
// FOR SEO meta tag or:url
host: 'https://blog.ewocker.com',
},
},
routeRules: redirect,
tailwindcss: {
config: {
plugins: [tailwindTypography, tailwindLineClamp],
theme: {
extend: {
typography: ({ theme }) => ({
DEFAULT: {
css: {
// remove underline
a: {
color: '#364f87',
'text-decoration': 'none',
'&:hover': {
color: '#10234f',
'text-decoration': 'underline',
},
},
code: {
backgroundColor: theme('colors.slate.200'),
borderRadius: theme('borderRadius.sm'),
paddingTop: theme('padding[1]'),
paddingRight: theme('padding[1.5]'),
paddingBottom: theme('padding[1]'),
paddingLeft: theme('padding[1.5]'),
},
'code::before': {
content: 'normal',
},
'code::after': {
content: 'normal',
},
},
},
}),
},
},
},
},
compatibilityDate: '2024-10-15',
})