gnab/remark

Using jekyll's "includes" with remark

ratnanil opened this issue · 2 comments

I'm happily using remark with jekyll. Jekyll let's me work with a template file, as it is descrbed in the wiki.

I would also like to use jekyll's include command in my slides, e.g. {% include something.html %}. But somehow, I cant get this working: when I build my slides, the command {% include something.html %} is parsed literally into my slide (see screenshot below).

The content of my default-presentation.md file is below, where as _includes/test.html contains just <p>test</p>. I've also created a minimal repo containing all the files, here

---
layout: presentation
title: Default Presentation
permalink: /default-presentation/
---

# My Awesome Presentation

{% include test.html %}

Screenshot 2021-09-25 at 23-59-13 Default Presentation

this question has been answered here: https://stackoverflow.com/questions/69333890/using-jekylls-includes-with-remark/69365142?noredirect=1#comment122607165_69365142

the answer shows the reason, I haven't been able to find a workaround yet

@ratnanil Can you use partial with jekyll?

This is working with middleman
https://github.com/flexbox/courses/blob/master/source/presentations/book/index.html.slim#L36

= partial 'layouts/presentation/speaker'