Check if `includes` dir is relative to current dir or `input` dir
See original GitHub issueCurrently is relative to input
directory, which is confusing. See #60.
It’s unlikely we’ll be able to wholesale change this, but we can at least check to see if the directory exists before we choose.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:9 (5 by maintainers)
Top Results From Across the Web
How to check if a path is absolute path or relative path in a ...
os.path.isabs returns True if the path is absolute, False if not. The documentation says it works in windows (I can confirm it works...
Read more >Paths explained: Absolute, relative, UNC, and URL—Help
A relative path refers to a location that is relative to a current directory. Relative paths make use of two special symbols, a...
Read more >Relative and absolute paths, in the file system and on ...
realpath() command will convert a relative path to an absolute one. getcwd() will give you the current directory.
Read more >Navigating Files and Directories
You can usually use either a full path or a relative path depending on what is most convenient. If we are in the...
Read more >File path formats on Windows systems
You can determine whether a file path is fully qualified (that is, if the path is independent of the current directory and does...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In the future, will it be possible to have the include directory reside outside of the input directory?
After a long time not building websites I just tried using Eleventy. The need for nested includes instantly confused me and ultimately resulted in a very messy structure with content files living alongside layout files.
A big upvote here for dropping the need for
includes
anddata
to live insideinput
!Still love it all though! ❤️