Skip to content

Instantly share code, notes, and snippets.

@chihirokaasan
Created October 10, 2018 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chihirokaasan/f432fa3fc76102b78a49dc2fdf098eed to your computer and use it in GitHub Desktop.
Save chihirokaasan/f432fa3fc76102b78a49dc2fdf098eed to your computer and use it in GitHub Desktop.
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