This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
Build fails when code contains Django template language (liquid tags) #498
Labels
bug
Something isn't working
Required Prerequisites for filing a bug
You must follow ALL the steps in the troubleshooting guide. Not doing so may result in automatic closure of the issue.
Required information
I'm using the latest version of
fastpages
to run my new blog.On the blog, I want to write (among other stuff) about Django. Django's templates use syntax that is likely confused by Jekyll and that leads to build failures when using it in code snippets.
For example, including the following code snippet in a blog post leads to a build failure:
The action leads to the following error:
Liquid Exception: Liquid syntax error (line 105): Unknown tag 'url' in /github/workspace/_posts/2021-01-29-django-db.md
(see failed action).When removing the code snippet from the blog post, it works fine.
This seems to be related to this issue, which is closed but apparently didn't solve the problem for me: #66
Using the post with the Django code snippet, the action fails, eg, here.
Is there any recommendation how to deal with this other than just removing the snippet? I read something about
{% raw %}
tags around the snippet?The text was updated successfully, but these errors were encountered: