Locations other than _data/
pedromorgan opened this issue · 4 comments
pedromorgan commented
Am creating a site which has json files in sub directories.. which contains the "data" already..
eg https://welsh-railways.gitlab.io/station/foobar/meta.json
Is there a way to access that without creating symlinks to the _data
directory ?
rosscdh commented
Hey there, yes as per https://github.com/rosscdh/mkdocs-markdownextradata-plugin#using-external-data-files
tho it assumes only 1 path
pedromorgan commented
umm that kinda not gonna work either I think..
Its the way am doing atmo, but with symlinks..
Ideally what would be perfect is from data in fm eg
---
title: More Data
xdata:
- foo.json
- bar: more_data.yml
---
and in templates
<ul>
{% for rec in page.meta.xdata.foo %}
<li><a href="{{rec.path}}">{{rec.title}}</a></li>
{% endfor %}
</ul>
{{page.meta.xdata.bar.x}}
rosscdh commented
Sorry, wont change
rosscdh commented
Please check the 0.1.3 release for ability to handle multiple data locations