Jekyll includes and YAML frontmatter -


is possible offload frontmatter include in manner? jekyll site uses frontmatter variable page title, have pages share include due code repetition. putting frontmatter page title in include treats raw html. there way simulate , set variables in include?

you can pass parameter include. try:

{% include name.html var={{page.title}} %} 

then in include, access parameter using include.var.

see "pass parameters includes" @ https://jekyllrb.com/docs/includes/


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -