From 56d322bd2b39be7f2ab6c07b221841ad4bdf3212 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 18 Nov 2018 23:52:57 +0100 Subject: [PATCH] renaming --- README.md | 2 +- gatsby-node.js | 4 ++-- gatsby/{exif.js => createExifFields.js} | 0 gatsby/{onCreateNode.js => createMarkdownFields.js} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename gatsby/{exif.js => createExifFields.js} (100%) rename gatsby/{onCreateNode.js => createMarkdownFields.js} (94%) diff --git a/README.md b/README.md index 78415c97..c711aeaa 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ In the end looks like this, including location display with [pigeon-maps](https: If you want to know how this works, have a look at the respective component under - [`src/components/atoms/Exif.jsx`](src/components/atoms/Exif.jsx) -- the EXIF node fields creation [`gatsby/exif.js`](gatsby/exif.js) running in [`gatsby-node.js`](gatsby-node.js) +- the EXIF node fields creation [`gatsby/createExifFields.js`](gatsby/createExifFields.js) running in [`gatsby-node.js`](gatsby-node.js) ### 💰 Cryptocurrency donation via Web3/MetaMask diff --git a/gatsby-node.js b/gatsby-node.js index aa7b38dc..fb932c1c 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,5 +1,5 @@ -const { createMarkdownFields } = require('./gatsby/onCreateNode') -const { createExifFields } = require('./gatsby/exif') +const { createMarkdownFields } = require('./gatsby/createMarkdownFields') +const { createExifFields } = require('./gatsby/createExifFields') const { generatePostPages, generateTagPages, diff --git a/gatsby/exif.js b/gatsby/createExifFields.js similarity index 100% rename from gatsby/exif.js rename to gatsby/createExifFields.js diff --git a/gatsby/onCreateNode.js b/gatsby/createMarkdownFields.js similarity index 94% rename from gatsby/onCreateNode.js rename to gatsby/createMarkdownFields.js index c8ad1556..660dfffc 100644 --- a/gatsby/onCreateNode.js +++ b/gatsby/createMarkdownFields.js @@ -2,7 +2,7 @@ const path = require('path') const { createFilePath } = require('gatsby-source-filesystem') const { repoContentPath } = require('../config') -// Create slug & date for posts from file path values +// Create slug, date & github file link for posts from file path values exports.createMarkdownFields = (node, createNodeField, getNode) => { const fileNode = getNode(node.parent) const parsedFilePath = path.parse(fileNode.relativePath)