Skip to content

Commit

Permalink
Don't reinvent the wheel with metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ttsch committed Jan 2, 2020
1 parent 49edeb6 commit 3f48bf2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
7 changes: 0 additions & 7 deletions config/site.js

This file was deleted.

9 changes: 8 additions & 1 deletion gridsome.config.js
Expand Up @@ -5,8 +5,15 @@
// To restart press CTRL + C in terminal and run `gridsome develop`

module.exports = {
icon: './src/assets/images/favicon.png',
siteName: 'OMSCS Notes',
icon: './src/assets/images/favicon.png',
metadata: {
github: 'https://github.com/m4ttsch/omscs-notes',
linkedin: 'https://www.linkedin.com/in/matt-schlenker-3457b047',
email: 'omscs-notes@gatech.edu',
amazon: 'https://amzn.to/2Pai0bO',
paypal: 'https://www.paypal.me/MatthewSchlenker'
},
plugins: [
{
use: '@gridsome/source-filesystem',
Expand Down
10 changes: 1 addition & 9 deletions gridsome.server.js
Expand Up @@ -4,14 +4,6 @@

// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
const site = require('./config/site')

module.exports = function (api) {
api.loadSource(({ addCollection, addMetadata }) => {
const keys = Object.keys(site)

for(const key of keys) {
addMetadata(key, site[key])
}
})
module.exports = function () {
}

0 comments on commit 3f48bf2

Please sign in to comment.