Skip to content

Commit

Permalink
feat: add verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionad-Morotar committed Jun 12, 2024
1 parent 0b71a8d commit abb05d8
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 56 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"qwen"
],
"cSpell.words": [
"codeva",
"Deeruby",
"heroicons",
"iconify",
Expand Down
3 changes: 2 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
useHead({
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'baidu-site-verification', content: 'codeva-z8bG7C8jZQ' }
],
link: [
{ rel: 'icon', href: '/favicon.ico' }
Expand Down
107 changes: 52 additions & 55 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import rssPosts from "./rss.js";
import rssPosts from './rss.js'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
Expand All @@ -7,13 +7,13 @@ export default defineNuxtConfig({
isCustomElement: (tag) => [].includes(tag),
},
},
extends: ["@nuxt/ui-pro"],
extends: ['@nuxt/ui-pro'],
modules: [
"@nuxt/content",
"@nuxt/ui",
"@nuxthq/studio",
"@nuxtjs/fontaine",
"@nuxtjs/sitemap",
'@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
Expand All @@ -25,71 +25,68 @@ export default defineNuxtConfig({
nitro: {
prerender: {
crawlLinks: true,
routes: [
'/',
'/sitemap.xml'
]
}
routes: ['/', '/sitemap.xml'],
},
},
// @ts-ignore see https://github.com/nuxt-community/feed-module
feed: {
path: "/rss.xml",
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",
};
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.addCategory('Lionad')
feed.addContributor({
name: "Lionad",
email: "[email protected]",
link: "https://www.lionad.art",
});
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) => {
'components:extend': (components) => {
const globals = components.filter((c) =>
[
"Commend",
"Compare",
"ReadBase64",
"LLink",
"Spark",
"UButton",
"UIcon",
"AspectRatio",
'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,
Expand All @@ -100,21 +97,21 @@ export default defineNuxtConfig({
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',
],
},
},
});
})

0 comments on commit abb05d8

Please sign in to comment.