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

Using jekyll's "includes" with remark #660

Open
ratnanil opened this issue Sep 25, 2021 · 2 comments
Open

Using jekyll's "includes" with remark #660

ratnanil opened this issue Sep 25, 2021 · 2 comments

Comments

@ratnanil
Copy link

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

@ratnanil
Copy link
Author

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

@flexbox
Copy link

flexbox commented Jan 30, 2023

@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'

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

3 participants