Skip to content

Liquid includes of templates with HTML code #180

@rkratky

Description

@rkratky

When my Jekyll page includes (using the Liquid include tag) a template with HTML code, the HTML code gets converted by the AsciiDoctor processor, thus not rendering the HTML code as expected. Example:

page.adoc

---
front matter
---

:page-liquid:

{% include file.html %}

file.html

<p>{{ site.time }}</p>

This renders as:

<p>2018-07-24 11:47:17 -0500</p>

But it would be great to have a way to instruct the plugin to render it as expected, i.e.:


2018-07-24 11:47:17 -0500

It can be achieved by using the passthrough macro, i.e., for example:

+++{% include file.html %}+++

But that seems clunky.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions