Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nuxt.js title
<script>
export default {
head () {
return {
title: 'トップページ',
//titleTemplate: '', hide titleTemplate
}
}
}
</script>
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
titleTemplate: '%s - ITかあさんNuxt.jsがんばるまん',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-sbucale=1' },
{ hid: 'description', name: 'description', content: pkg.description },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
//以下略
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment