-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5a5d5d
commit 264b1ee
Showing
4 changed files
with
350 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,111 @@ | ||
import rssPosts from "./rss.js"; | ||
|
||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
vue: { | ||
compilerOptions: { | ||
isCustomElement: tag => [].includes(tag) | ||
isCustomElement: (tag) => [].includes(tag), | ||
}, | ||
}, | ||
extends: ['@nuxt/ui-pro'], | ||
extends: ["@nuxt/ui-pro"], | ||
modules: [ | ||
'@nuxt/content', | ||
'@nuxt/ui', | ||
'@nuxthq/studio', | ||
'@nuxtjs/fontaine', | ||
"@nuxt/content", | ||
"@nuxt/ui", | ||
"@nuxthq/studio", | ||
"@nuxtjs/fontaine", | ||
"@nuxtjs/sitemap", | ||
// ! wierd error, disable for a while | ||
// "@nuxtjs/feed", | ||
// ! cant fetch twimoji error, so disable for a while | ||
// 'nuxt-og-image' | ||
], | ||
site: { | ||
url: 'https://www.lionad.art', | ||
}, | ||
// @ts-ignore see https://github.com/nuxt-community/feed-module | ||
feed: { | ||
path: "/rss.xml", | ||
async create(feed) { | ||
feed.options = { | ||
title: "Lionad's blog", | ||
link: "https://www.lionad.art/rss.xml", | ||
description: "Feed for Lionad's Blog", | ||
}; | ||
rssPosts.forEach((post) => { | ||
feed.addItem({ | ||
title: post.title, | ||
id: post.url, | ||
link: post.url, | ||
description: post.description, | ||
content: post.content, | ||
}); | ||
}); | ||
feed.addCategory("Lionad"); | ||
feed.addContributor({ | ||
name: "Lionad", | ||
email: "[email protected]", | ||
link: "https://www.lionad.art", | ||
}); | ||
}, | ||
}, | ||
hooks: { | ||
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need) | ||
'components:extend': (components) => { | ||
const globals = components.filter((c) => ['Commend', 'Compare', 'ReadBase64', 'LLink', 'Spark', 'UButton', 'UIcon', 'AspectRatio'].includes(c.pascalName)) | ||
"components:extend": (components) => { | ||
const globals = components.filter((c) => | ||
[ | ||
"Commend", | ||
"Compare", | ||
"ReadBase64", | ||
"LLink", | ||
"Spark", | ||
"UButton", | ||
"UIcon", | ||
"AspectRatio", | ||
].includes(c.pascalName) | ||
); | ||
|
||
globals.forEach((c) => c.global = true) | ||
} | ||
globals.forEach((c) => (c.global = true)); | ||
}, | ||
}, | ||
ui: { | ||
icons: ['heroicons', 'simple-icons'] | ||
icons: ["heroicons", "simple-icons"], | ||
}, | ||
content: { | ||
highlight: { | ||
theme: { | ||
default: 'github-light', | ||
dark: 'github-dark', | ||
sepia: 'monokai' | ||
} | ||
} | ||
default: "github-light", | ||
dark: "github-dark", | ||
sepia: "monokai", | ||
}, | ||
}, | ||
}, | ||
routeRules: { | ||
'/api/search.json': { prerender: true }, | ||
"/api/search.json": { prerender: true }, | ||
}, | ||
devtools: { | ||
enabled: false, | ||
}, | ||
typescript: { | ||
strict: false | ||
strict: false, | ||
}, | ||
mdc: { | ||
highlight: { | ||
langs: [ | ||
'bash', | ||
'cpp', | ||
'css', | ||
'glsl', | ||
'html', | ||
'less', | ||
'js', | ||
'powershell', | ||
'scss', | ||
'shell', | ||
'ts', | ||
'vue', | ||
'makefile', | ||
'csharp' | ||
] | ||
} | ||
} | ||
}) | ||
"bash", | ||
"cpp", | ||
"css", | ||
"glsl", | ||
"html", | ||
"less", | ||
"js", | ||
"powershell", | ||
"scss", | ||
"shell", | ||
"ts", | ||
"vue", | ||
"makefile", | ||
"csharp", | ||
], | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.