Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support maps of maps in front matter (theme Academic) #226
How can I get ox-hugo to create these lists (like
So the day has finally come. Someone actually needs this feature? :P
This is a known limitation. See https://ox-hugo.scripter.co/doc/custom-front-matter/#maps-of-single-and-list-values: "Maps of maps are not supported.".
I didn't implement that because I wasn't sure if all the effort needed in designing this complicated feature would be worth it.
But now I'll think of a user-friendly way of entering this table meta data in Org that would translate to that TOML table.
I will work on this, but this feature is not a high priority.
Just to be clear, if you look at that link I pasted, the "interests" front-matter setting is already supported.
But the "education.courses", which is a TOML table of tables, is not yet.
added a commit
Oct 17, 2018
@andreas-h Hello, I thought a bit more about this. While I won't have time implementing a full-fledged parsing of maps of maps type front-matter, I have added a brute-force solution that would work for any kind of front-matter in ca0e602.
Here's a test case: https://ox-hugo.scripter.co/test/posts/front-matter-toml-toml-extra/ (see the Markdown source link in there for ox-hugo generated front-matter + content).
Here's the source of that test from the test suite: