Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add head samplet to sample01
  • Loading branch information
potato4d committed Sep 3, 2018
1 parent d74e27c commit 806d43c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
@@ -1,5 +1,6 @@
module.exports = {
title: 'Nuxt.js ビギナーズガイド',
description: '「Nuxt.js ビギナーズガイド(C&R研究所出版)」 のサポートページです',
themeConfig: {
sidebar: {
'/about/': ['', 'eratta.md', 'keywords.md'],
Expand Down
1 change: 1 addition & 0 deletions packages/my-first-nuxt-app/nuxt.config.js
Expand Up @@ -4,6 +4,7 @@ module.exports = {
*/
head: {
title: 'my-first-nuxt-app',
titleTemplate: '%s | Nuxt.js tag items viewer',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
Expand Down
5 changes: 5 additions & 0 deletions packages/my-first-nuxt-app/pages/users/_id.vue
Expand Up @@ -27,6 +27,11 @@
import { mapGetters } from 'vuex';
export default {
head() {
return {
title: this.user.id
}
},
async asyncData({ route, store, redirect }) {
if (store.getters['users'][route.params.id]) {
return;
Expand Down

0 comments on commit 806d43c

Please sign in to comment.