Skip to content

Commit

Permalink
fix(Headers): move to useHead
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed May 23, 2023
1 parent d255610 commit cb646dc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 30 deletions.
29 changes: 28 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup>
const config = useRuntimeConfig()
useHead({
htmlAttrs: {
lang: 'en',
Expand All @@ -11,7 +13,32 @@
titleTemplate: (titleChunk) => {
return titleChunk ? `${titleChunk} | Rule 34 App` : 'Rule 34 App'
}
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'monetization',
content: config.public.MONETIZATION_URI
},
// TODO: Improve description
{
name: 'description',
content: 'Stream and download images, GIFs and videos hentai. For free!'
}
],
link: [
// Font
{
rel: 'stylesheet',
type: 'text/css',
href: 'https://rsms.me/inter/inter.css'
}
]
})
</script>

Expand Down
32 changes: 3 additions & 29 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,10 @@ export default defineNuxtConfig({
PROXY_URL: process.env.PROXY_URL,

MATOMO_HOST: process.env.MATOMO_HOST,
MATOMO_SITE_ID: process.env.MATOMO_SITE_ID
}
},
MATOMO_SITE_ID: process.env.MATOMO_SITE_ID,

meta: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
name: 'description',
content:
'Browse popular Rule 34 Hentai Porn for free.' +
' We have Anime, Pokemon, Fortnite, Naruto, FNF, FNAF, CountryHumans, Brawl Stars, Gay, Video…'
},
{
name: 'monetization',
content: process.env.MONETIZATION_URI
}
],

link: [
// Font
{
rel: 'stylesheet',
type: 'text/css',
href: 'https://rsms.me/inter/inter.css'
}
],

noscript: [{ innerHTML: 'This website requires JavaScript' }]
MONETIZATION_URI: process.env.MONETIZATION_URI
}
},

css: ['~/assets/css/main.css'],
Expand Down

0 comments on commit cb646dc

Please sign in to comment.