Created
October 10, 2018 04:48
-
-
Save chihirokaasan/f432fa3fc76102b78a49dc2fdf098eed to your computer and use it in GitHub Desktop.
Nuxt.js title
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
<script> | |
export default { | |
head () { | |
return { | |
title: 'トップページ', | |
//titleTemplate: '', hide titleTemplate | |
} | |
} | |
} | |
</script> |
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
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