Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
build: add content-feder source
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Apr 5, 2020
1 parent 511dc0b commit f0dee72
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,32 @@ const plugins = [
},
}
: null,
isOnline && {
resolve: `gatsby-source-git`,
options: {
name: `gaiama-content-feder`,
remote: `https://gitlab.com:${GAIAMA_CONTENT_TOKEN}@gitlab.com/gaiama/content-feder.git`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: isOnline
? // ? join(__dirname, `.cache`, `gatsby-source-git`, `gaiama-content`)
join(__dirname, `.vscode`)
? join(__dirname, `.vscode`)
: join(__dirname, `..`, `gaiama.org_content`),
name: `content`,
ignore: [`**/.git`, `**/happygaia/*`],
},
},
// new Feder content
!isOnline && {
resolve: `gatsby-source-filesystem`,
options: {
path: join(__dirname, `..`, `gaiama.org_content-feder`),
name: `content-feder`,
ignore: [`**/.git`, `**/happygaia/*`],
},
},
{
resolve: `@gaiama/gatsby-source-gaiama-donations`,
options: {
Expand Down Expand Up @@ -427,7 +442,7 @@ const plugins = [

// items: allMdx(
// filter: {
// frontmatter: { type: { eq: "article" }, published: { eq: true } }
// frontmatter: { type: { eq: "article" }, isPublished: { eq: true } }
// }
// sort: { order: DESC, fields: [frontmatter___date] }
// ) {
Expand Down

0 comments on commit f0dee72

Please sign in to comment.