Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ npm-debug.log
.eslintcache
.gatsby-context.js
.idea
gatsby-starter-lumen.iml
gatsby-starter-lumen.iml
.env
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v10.16.0
24 changes: 16 additions & 8 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module.exports = {
url: 'https://streams.codeparkhouston.org',
title: 'Streams by Code Park',
subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
title: 'Streams | Code Park',
subtitle: 'Coding a better City through Curiosity and Confidence.',
copyright: '© All rights reserved.',
disqusShortname: '',
postsPerPage: 4,
Expand All @@ -14,23 +14,31 @@ module.exports = {
path: '/'
},
{
label: 'About me',
label: 'About',
path: '/pages/about'
},
{
label: 'Contact me',
label: 'Contact',
path: '/pages/contacts'
},
{
label: 'Goals',
path: '/goals'
},
{
label: 'Pictures',
path: '/pictures'
}
],
author: {
name: 'Code Park',
photo: '/code-park-logo.png',
bio: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
bio: 'Our mission is to provide high quality Computer Science education for all underserved students in the Greater Houston Area.',
contacts: {
email: '#',
email: 'hello@codeparkhouston.com',
telegram: '#',
twitter: '#',
github: '#',
twitter: '@codeparkhouston',
github: 'https://github.com/codeparkhouston',
rss: '#',
vkontakte: '#'
}
Expand Down
21 changes: 21 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
'use strict';
require('dotenv').config();

const siteConfig = require('./config.js');
const postCssPlugins = require('./postcss-config.js');

console.log(process.env.AIRTABLE_API_KEY);

module.exports = {
siteMetadata: {
url: siteConfig.url,
Expand All @@ -14,6 +17,24 @@ module.exports = {
author: siteConfig.author
},
plugins: [
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.AIRTABLE_API_KEY, // may instead specify via env, see below
tables: [
{
baseId: `appZPOZc1yE6xSVrm`,
tableName: `Goals`,
},
{
baseId: `appx2RvGpqOa4e8Lc`,
tableName: `Media`,
tableView: `Stream`,
mapping: { Media: `fileNode` },
},
]
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
Expand Down
13 changes: 12 additions & 1 deletion gatsby/create-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ const createPages = async ({ graphql, actions }) => {
component: path.resolve('./src/templates/categories-list-template.js')
});

// Goals list
createPage({
path: '/goals',
component: path.resolve('./src/templates/goals-list-template.js')
});

// Pictures list
createPage({
path: '/pictures',
component: path.resolve('./src/templates/pictures-list-template.js')
});

// Posts and pages from markdown
const result = await graphql(`
{
Expand Down Expand Up @@ -71,5 +83,4 @@ const createPages = async ({ graphql, actions }) => {
await createPostsPages(graphql, actions);
};


module.exports = createPages;
Loading