Skip to content

Commit

Permalink
docs: fix meta
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Jul 18, 2022
1 parent 3cb7f60 commit a7ec956
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
import { defineNuxtConfig } from 'nuxt'

const confettiScripts = [
{ src: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js-confetti.browser.js', body: true },
{
innerHTML: `
if (typeof JSConfetti !== "undefined") {
new JSConfetti().addConfetti({
emojis: ["🌲", "💚", "📚", "📐", "🚀"],
emojiSize: 60,
});
}
`,
body: true
}
]

export default defineNuxtConfig({
extends: ['./node_modules/@docus/docs-theme'],
app: {
head: {
script: [...confettiScripts],
__dangerouslyDisableSanitizers: ['script']
meta: [
{ name: 'og:title', content: 'Nuxt Prismic', hid: 'og:title' }
]
}
},
modules: ['@nuxthq/admin', '@docus/github', 'vue-plausible'],
Expand Down

0 comments on commit a7ec956

Please sign in to comment.