Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit 9111900

Browse files
committed
Make homepage use siteinfo.json
1 parent edd26f9 commit 9111900

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

content/setup/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"sitename": "NetlifyCMS with Nuxt",
2+
"sitename": "Nuxt & NetlifyCMS Boilerplate",
33
"sitedescription": "A static site demo using Netlify CMS and Nuxt.js",
44
"siteicon": "/icon.png"
55
}

pages/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template lang="html">
22
<div class="main">
3-
<h1>NetlifyCMS & Nuxt Boilerplate</h1>
3+
<h1>{{siteInfo.sitename}}</h1>
4+
<p>{{siteInfo.sitedescription}}</p>
45
<div class="posts-list">
56
<h2 class="posts-list-title">Posts</h2>
67
<p class="post-link" v-for="post in blogPosts"><a :href="post._path">{{post.title}}</a></p>
@@ -18,6 +19,9 @@ export default {
1819
computed: {
1920
blogPosts() {
2021
return this.$store.state.blogPosts;
22+
},
23+
siteInfo() {
24+
return this.$store.state.siteInfo;
2125
}
2226
}
2327
}

0 commit comments

Comments
 (0)