Skip to content

Commit de5ad6d

Browse files
authored
reduce chances of colliding with absolute path
1 parent f615932 commit de5ad6d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
1515
const result = await graphql(`
1616
{
1717
postsRemark: allMarkdownRemark(
18-
filter: { fileAbsolutePath: { regex: "/posts/" } }
18+
filter: { fileAbsolutePath: { regex: "/content/posts/" } }
1919
sort: { order: DESC, fields: [frontmatter___date] }
2020
limit: 1000
2121
) {

src/components/sections/featured.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ const Featured = () => {
307307
const data = useStaticQuery(graphql`
308308
{
309309
featured: allMarkdownRemark(
310-
filter: { fileAbsolutePath: { regex: "/featured/" } }
310+
filter: { fileAbsolutePath: { regex: "/content/featured/" } }
311311
sort: { fields: [frontmatter___date], order: ASC }
312312
) {
313313
edges {

src/components/sections/jobs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const Jobs = () => {
168168
const data = useStaticQuery(graphql`
169169
query {
170170
jobs: allMarkdownRemark(
171-
filter: { fileAbsolutePath: { regex: "/jobs/" } }
171+
filter: { fileAbsolutePath: { regex: "/content/jobs/" } }
172172
sort: { fields: [frontmatter___date], order: DESC }
173173
) {
174174
edges {

src/components/sections/projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const Projects = () => {
170170
query {
171171
projects: allMarkdownRemark(
172172
filter: {
173-
fileAbsolutePath: { regex: "/projects/" }
173+
fileAbsolutePath: { regex: "/content/projects/" }
174174
frontmatter: { showInProjects: { ne: false } }
175175
}
176176
sort: { fields: [frontmatter___date], order: DESC }

src/pages/archive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export default ArchivePage;
245245
export const pageQuery = graphql`
246246
{
247247
allMarkdownRemark(
248-
filter: { fileAbsolutePath: { regex: "/projects/" } }
248+
filter: { fileAbsolutePath: { regex: "/content/projects/" } }
249249
sort: { fields: [frontmatter___date], order: DESC }
250250
) {
251251
edges {

src/pages/pensieve/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export default PensievePage;
211211
export const pageQuery = graphql`
212212
{
213213
allMarkdownRemark(
214-
filter: { fileAbsolutePath: { regex: "/posts/" }, frontmatter: { draft: { ne: true } } }
214+
filter: { fileAbsolutePath: { regex: "/content/posts/" }, frontmatter: { draft: { ne: true } } }
215215
sort: { fields: [frontmatter___date], order: DESC }
216216
) {
217217
edges {

0 commit comments

Comments
 (0)