chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

Make static paths in config.yml relative to base directory? #125

Open chrismgraham opened 2 years ago

chrismgraham commented 2 years ago

Currently thumbnails, js etc in config.yml require paths relative to the build/static folder. Given the idea of homing resources like these together with the content (where relevant), would it be better for these to now be relative to the base directory? For example ../../ is currently required in config.yml (where these files have been placed in sub-folders to "my_talk" because they are specific to that content):

thumbnail: ../../content/my_talk/static/thumb.png  
js: ["../../content/my_talk/static/custom.js"]