Moved Header from Home to App, and added check that data exists

This commit is contained in:
Alicia Sykes
2021-04-05 14:06:39 +01:00
parent 5ca3192992
commit 7f33be8485
5 changed files with 64 additions and 58 deletions

View File

@@ -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: [