Moved Header from Home to App, and added check that data exists
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import Vue from 'vue';
|
||||
import Router from 'vue-router';
|
||||
import Home from './views/Home.vue';
|
||||
import conf from './data/conf.yml'; // Main site configuration
|
||||
|
||||
Vue.use(Router);
|
||||
|
||||
@@ -10,6 +11,9 @@ const router = new Router({
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: Home,
|
||||
props: {
|
||||
sections: conf.sections || [],
|
||||
},
|
||||
meta: {
|
||||
title: 'Home Page',
|
||||
metaTags: [
|
||||
|
||||
Reference in New Issue
Block a user