livecomsjournal / livecomsjournal.github.io

Content for policy/instructional pages of the Living Journal of Computational Molecular Science (LiveCoMS)
https://livecomsjournal.github.io
6 stars 15 forks source link

Allow for colons in navigation titles #206

Closed ptmerz closed 3 years ago

ptmerz commented 3 years ago

PR #205 broke the Jekyll navigation generation by adding colons in the navigation file, which confuses the yml parsing. This is most easily fixed by putting the headers used as navigation targets between quotation marks.

This change modifies the python script generating the navigation to always put navigation targers between quotation marks, and to escape potential quotation marks already present in the string. It also regenerates the navigation file.