I did NOT know pycon Canada did their site with Nikola! Now I need to convince PyCon Argentina to do the same thing sometime ;-)
On Thu, Oct 4, 2018 at 9:13 PM 'Abraham Varricatt' via nikola-discuss < nikola-discuss@googlegroups.com> wrote: > Thank you for the example! I wouldn't have thought to address it that way. > Will try it out and let you know. This is going to be really helpful. :) > > On a tangential note, thanks for adding Pycon Canada 2018 to the list of > Nikola users! :) I need to thank Pycon Thailand 2018 as well. For the > initial layout, their source code acted as a good reference. > > Yours happily, > Abraham V. > > > On Thursday, 4 October 2018 10:31:15 UTC-4, Roberto Alsina wrote: > >> Looks like it sort of works? >> >> I created a data file in data/foo/bar.json with a little data, and: >> >> In [2]: site._GLOBAL_CONTEXT['data'] >> Out[2]: {'foo/bar': {'a': 'b'}} >> >> So, close enough to what you want? >> >> On Thu, Oct 4, 2018 at 8:42 AM Roberto Alsina <ral...@kde.org> wrote: >> > If it doesn't I can make it do so :) >>> >>> Try it and file an issue if it doesn't. >>> >>> On Thu, Oct 4, 2018, 8:20 AM 'Abraham Varricatt' via nikola-discuss < >>> nikola-...@googlegroups.com> wrote: >>> >> Hello, >>>> >>>> ref: >>>> https://getnikola.com/handbook.html#the-global-context-and-data-files >>>> >>>> Are sub-folders supported under data? >>>> >>>> For example, if we have a file location like, >>>> /data/foo.json >>>> >>>> with the contents looking like, >>>> {"bar": "baz"} >>>> >>>> From within a template, we can access it with ${data['foo']['bar']} >>>> >>>> My question is if sub-folders are supported? Like if I have a file >>>> located at, >>>> /data/my_subfolder/foo.json >>>> >>>> (similar contents as before) >>>> >>>> Can I access it using ${data['foo']['my_subfolder']['bar']} ? >>>> >>>> Background: I'm making a website for a conference and want to organise >>>> things by keeping speaker data in its own sub-folder. >>>> >>>> Yours, >>>> Abraham V. >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "nikola-discuss" group. >>>> >>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to nikola-discus...@googlegroups.com. >>> >>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "nikola-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nikola-discuss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nikola-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to nikola-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.