Skip to content

Commit 16008ff

Browse files
author
hugur
committed
make netlifycms read site local config (instead of theme's; but import)
1 parent 8aafdb3 commit 16008ff

File tree

27 files changed

+7
-289
lines changed

27 files changed

+7
-289
lines changed

gatsby-theme-w3f/gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ module.exports = ({
175175
/* call the js file, instead of yaml */
176176
manualInit: true,
177177
/* Netlify CMS customization code directory. */
178-
modulePath: `${__dirname}/src/cms/index.js`,
178+
modulePath: path.resolve('src/cms/index.js'),
179179
/* use netlify-identity widget to login */
180180
enableIdentityWidget: true,
181181
publicPath: `admin`,

gatsby-theme-w3f/src/cms/collections/authors.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

gatsby-theme-w3f/src/cms/collections/categories.js

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import authors from './authors';
2-
import categories from './categories';
3-
import posts from './posts';
41
import strings from './strings';
5-
import tags from './tags';
62

7-
export default [posts, authors, tags, categories, strings];
3+
export default {
4+
strings
5+
};

gatsby-theme-w3f/src/cms/collections/posts.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

gatsby-theme-w3f/src/cms/collections/tags.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

gatsby-theme-w3f/src/cms/fields/.gitkeep

Whitespace-only changes.

gatsby-theme-w3f/src/cms/fields/authors/description.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

gatsby-theme-w3f/src/cms/fields/authors/image.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

gatsby-theme-w3f/src/cms/fields/authors/name.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)