New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load data from data
directory
#523
Conversation
We did talk about where to put files in #379 (comment) I want to release 0.5 tomorrow or sunday so there isn't much time to decide :) |
Having data files related to content is a usage i'd not considered, but would actually be incredibly useful. I'm not sure of the right implementation for it though. Searching relative to multiple locations isn't very explicit, which I don't like. oooh, here's a thought. What if we allow Thoughts? |
What about doing the same approach as Hugo? |
That could work, although would be a much larger change than this, as it'd require a whole new global variable added to scope. Making the data path configurable could be another way to do it? |
We can reserve the data variable in 0.5.0 and implement it later. Or put
it on config.data instead
…On Fri, 16 Nov 2018, 19:29 Jake Howard ***@***.*** wrote:
That could work, although would be a much larger change than this, as it'd
require a whole new global variable added to scope.
Making the data path configurable could be another way to do it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#523 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAphozIj1fyMo2DiA7BlmGT6JMqdRU3Oks5uvwP_gaJpZM4YmuGo>
.
|
It doesnt really work on I'll close this, and consider an alternative implementation. |
Yeah the config was just for convenience since it's already passed
everywhere. I'll mention the data variable name is reserved in the breaking
changes anyway just so it isn't a breaking change if we go that way.
…On Fri, 16 Nov 2018, 19:46 Jake Howard ***@***.*** wrote:
Closed #523 <#523>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#523 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AApho--v4F2YFMjGdCBkXzLz__E8AF1Aks5uvwfogaJpZM4YmuGo>
.
|
So what ended up happening @Keats @RealOrangeOne ? |
I'll just mark that |
Load data from a
data
directory rather thancontent/
. This means the content directory is actually only used for content.It's still possible to load data from the content directory, by prefixing the
path
argument with../content/
.