bio-guoda / preston

a biodiversity dataset tracker
MIT License
25 stars 1 forks source link

make location of preston tracked content configurable in jekyll template #110

Open jhpoelen opened 3 years ago

jhpoelen commented 3 years ago

related to a question by @matdillen on how to separate hosting content outside a jekyll site file structure :

suggest to make the generation of tracked content urls configurable.

jhpoelen commented 3 years ago

Added example on how to make data location configurable via:

https://github.com/jhpoelen/fieldmuseum-lice/commit/02de93f2dc7476c7c30b478204d3b4c6249d330d

that resulted in content referenced in https://jhpoelen.nl/fieldmuseum-lice is now being retrieved from:

https://raw.githubusercontent.com/jhpoelen/fieldmuseum-lice/main/data/4c/05/4c05287c7044920704ef32bd7e8ed606bccde5a1b04e3fa5c2ba31383485d428

instead of

https://jhpoelen.nl/data/4c/05/4c05287c7044920704ef32bd7e8ed606bccde5a1b04e3fa5c2ba31383485d428

Also, I've updated the jekyll template generation to include this modification to make it easier to configure a data_location other than the local one.

jhpoelen commented 3 years ago

Note that more sophisticated content locator schemes can be introduced. For instance, a network of data servers can be established and collaborate to serve the requested content as requested by their content hash.