reconhub / learn

RECON learn: a free, open platform for training material on epidemics analysis
https://reconlearn.org
Other
35 stars 30 forks source link

Artefacts present on p3-4 in home need to be removed #29

Closed thibautjombart closed 5 years ago

thibautjombart commented 5 years ago

This looks very odd, see screenshot below for p3:

screenshot_2018-08-30_08-49-21

My suspicion is this is because hugo tries to process the folders named ***_files in /content/post/, which are seemingly needed for the html widgets.

thibautjombart commented 5 years ago

Adding this to config.toml removes the artefacts but then the html widgets are missing from the posts:

ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_cache$","^README", "_files", "widgets"]
thibautjombart commented 5 years ago

So, the culprits are the folders *_files and widgets in content/post/:

master@icarus:~/dev/recon/learn$ ls content/post
deps.yaml                            lecture-outbreak-statistics.Rmd       practical-ebola-reconstruction.Rmd  practical-phylogenetics_files
lecture-basicvbd-modelling.md        lecture-phylogenetics.md              practical-ebola-response_files      practical-phylogenetics.md
lecture-basicvbd-modelling.Rmd       lecture-phylogenetics.Rmd             practical-ebola-response.md         practical-phylogenetics.Rmd
lecture-compartmental-ebola.md       lecture-reproducibility.md            practical-ebola-response.Rmd        practical-vbd_files
lecture-compartmental-ebola.Rmd      lecture-reproducibility.Rmd           practical-evd.bib                   practical-vbd.md
lecture-modelling-public-health.md   practical-compartmental-ebola_files   practical-outbreakend.bib           practical-vbd.Rmd
lecture-modelling-public-health.Rmd  practical-compartmental-ebola.md      practical-outbreakend_files         tutorial-post-creation.md
lecture-outbreaker2.md               practical-compartmental-ebola.Rmd     practical-outbreakend.md            tutorial-post-creation.Rmd
lecture-outbreaker2.Rmd              practical-ebola-reconstruction_files  practical-outbreakend.Rmd           widgets
lecture-outbreak-statistics.md       practical-ebola-reconstruction.md     practical-phylogenetics.bib

From this discussion it looks like the recommended practice would be to put them in static/. Moving all the guilty folders to static/post does the trick, but a longer term solution would still be preferable.

zkamvar commented 5 years ago

This was fixed in #51 and 7da1342aa4eb43b283a962f32e3609d84e0c1de1.