Search code examples
yamljekyllgithub-pages

How to add YAML front matter to an SVG image


I am hosting a web comic using Jekyll and Github Pages. I have so far written an HTML file which should iterate over the images, however I am not able to get data from the SVG. As mentioned before, I need to asdd some data to the file itself (title text, date published, etc). Is there a way to add it to the XML file itself?

EDIT: I have tried to directly add the front matter to the SVG, and it did not display.
EDIT #2: My repository is here
EDIT #3: I am now using a more flexible custom build system. For anyone else with the same problem: Try Javascript/JSON.


Solution

  • Never mind, it seems Jekyll doesn't parse SVG images. I decided to use a JSON file instead.