-
Notifications
You must be signed in to change notification settings - Fork 163
created site doesn't process liquid tags in posts when shown on homepage #246
Comments
Nice catch, this is a hard one! @JakeGinnivan , @shiftkey it seems that it is not possible to use liquid or razor in a post content, only in a template or a page, is this wanted? |
Pretty sure this is expected. liquid/razor are templating languages and markdown is the content renderer. markdown does not support liquid/razor syntax. You could name your file |
Sorry, I don't know what I was thinking, my message was confusing: by default with the create method the index page is a index.md file containing a lot of liquid or razor code and it is generated correctly. I haven't successfully tested it on Jekyll but I think it is a bug on Pretzel side. |
This is really annoying when you try to host a blog in a subdirectory, so if anyone is having problems with this, there is a workaround/hack you can apply until a proper fix comes along: Simply repeat the call at line 191 of src / Pretzel.Logic / Templating / JekyllEngineBase.cs like this:
|
Using pretzel 0.2.1.169 (build 175) which I downloaded from Appveyor (non script cs zip), the posts that are shown on the main page of the site do not have liquid tags processed. Not sure if this is an issue with the use of
{{ post.content }}
to include the content of the post on the homepage or if there is an actual bug in pretzel.Steps to reproduce
pretzel create
{% post_url 2015-05-05-myfirstpost %}
before hello worldpretzel taste
On the homepage under the post title, you will see "{% post_url 2015-05-05-myfirstpost %}" this should be processed into a url for the post.
The text was updated successfully, but these errors were encountered: