Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex custom YAML headers #51

Open
akopytov opened this issue Oct 3, 2017 · 1 comment
Open

Complex custom YAML headers #51

akopytov opened this issue Oct 3, 2017 · 1 comment

Comments

@akopytov
Copy link
Contributor

akopytov commented Oct 3, 2017

Some Jekyll themes allow customizing how the post looks by adding custom YAML headers. Thanks to #40 it is now possible to add custom key-value options to the front matter. However, it is sometimes necessary to add YAML code which is not just a key-value. This is what I'm trying to add currently:

header:
  teaser: /assets/images/my-awesome-post-teaser.jpg

Is there any way to achieve that without patching org2jekyll?

@ardumont
Copy link
Owner

ardumont commented May 17, 2020

Is there any way to achieve that without patching org2jekyll?

No, there is none as I did not foresee that use at the time ;)

Although, iirc yaml is kinda compliant and you can use a map/list form like this:

#+HEADER: header: {teaser: /assets/teaser.png}
#+ANOTHER: [1 2 3]

which would be converted as is in the html.

---
...
header: {teaser: /assets/teaser.png}
another: [1 2 3]
...
---

But that's workarounds at best (if that works).

Is there some more examples sample (an extract here or a link would do), please?
I'm not that knowledegful about jekyll.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants