question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Directory Specific Data Files should traverse up directory hierarchy.

See original GitHub issue

I have a deep hierarchy of folders in my top folder photos/: https://github.com/nhoizey/photosynthese.net/tree/master/photos/voyages/asie/hong-kong

I would like to use getFilteredByGlob to tell Eleventy every Markdown content in this folder and sub-folders are part of the photos collection:

  eleventyConfig.addCollection('photos', function(collection) {
    return collection.getFilteredByGlob('photos/**/*.md')
  })

But the layout is only applied to the Markdown file (test.md) that is directly in the top level folder.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
zachleatcommented, Feb 27, 2018

Oh, yes, that is what I’d expect to happen. Although your assumption about the feature would be a welcome change. Going to switch this to be an Enhancement request.

0reactions
nhoizeycommented, Mar 6, 2018

Awesome enhancement, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Navigating Files and Directories - Data Carpentry
Directories can be specified using either a relative path or a full absolute path. The directories on the computer are arranged into a...
Read more >
Traversing Folders : MGA - Web Development Tutorials
It is fairly simple to trace the path from a Web page to a graphic image or other Web pages if you focus...
Read more >
Java Program to Traverse in a Directory - GeeksforGeeks
Suppose there exists a directory with path C:\\GFG. The following image displays the files and directories present inside GFG folder. The ...
Read more >
How to traverse up directory structure using batch file
Go to each file location. · Search the current folder for a 'makefile'. · If found, run 'make' and break out, else go...
Read more >
What is directory traversal, and how to prevent it? - PortSwigger
Directory traversal (also known as file path traversal) is a web security vulnerability that allows an attacker to read arbitrary files on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found