move config to config.json

DJ committed Sep 20, 2018
commit 7cc733c065a568af24be20148beec1926359a16c
Showing 2 changed files with 40 additions and 11 deletions
portfolio/.vuepress/config.js +7 -11
@@ @@ -1,19 +1,15 @@
+ const config = require('../config.json');
module.exports = {
- title: "Acme",
- description: "creative agency",
+ title: config.title,
+ description: config.description,
base: "/",
themeConfig: {
- logo: "/upload/logo.svg",
- footer: "Ⓒ Acme",
- nav: [
- { text: "Works", link: "/", position: "left", external: false },
- { text: "Instagram", link: "https://www.instagram.com/its.nwa/", position: "left", external: true },
- { text: "Say hi!", link: "mailto:sayhi@mydomain.com", position: "right", external: true },
- { text: 'Journal', link: '/journal/', position: 'right', external: false },
- ]
+ logo: config.logo,
+ footer: config.footer,
+ nav: config.navigation,
},
head: [
- ['link', { rel: "icon", href: "favicon-32x32.png" }]
+ ['link', { rel: "icon", href: config.favicon }]
],
markdown: {
anchor: {
portfolio/config.json +33 -0
@@ @@ -0,0 +1,33 @@
+ {
+ "title": "Acme",
+ "description": "Creative Agency",
+ "logo": "/upload/logo.svg",
+ "footer": "Ⓒ Acme",
+ "favicon": "favicon-32x32.png",
+ "navigation": [
+ {
+ "text": "Works",
+ "link": "/",
+ "position": "left",
+ "external": false
+ },
+ {
+ "text": "Instagram",
+ "link": "https://www.instagram.com/its.nwa",
+ "position": "left",
+ "external": true
+ },
+ {
+ "text": "Say hi!",
+ "link": "mailto:sayhi@mydomain.com",
+ "position": "right",
+ "external": true
+ },
+ {
+ "text": "Journal",
+ "link": "/journal/",
+ "position": "right",
+ "external": false
+ }
+ ]
+ }
\ No newline at end of file