-
Notifications
You must be signed in to change notification settings - Fork 102
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
post.content markdown not rendered #28
Comments
Using {{ content }} also doesn't show the content at all. |
Ah, I see. Generators are called before the render process is complete. That said, this should work nevertheless. Can you post a link to your site? What does your archive template look like? What version of Jekyll are you using? |
I haven't got the site live yet as there's still a lot of other things I need to first. Here's the archive layout I'm using with the Jekyll 2.5.2.
Using |
Yeah it has to be |
and we're back to my original statement. When I use post.content, none of the markdown or liquid tags are rendered. |
What does that mean? Plain text? Or a code block? Can you paste a screenshot? |
Is this not the case for any post/page listing? |
Here's the snippet for my index.html file that displays everything correctly.
|
I'm running into this bug too -- |
Generators are run before the |
Understood, thanks! I'm wondering where the solution lies. It feels like the current behavior is undesirable. Is this something that needs to be filed against Jekyll itself -- an improvement for Generators for future consideration? Or is there a way to improve |
The solution is to allow Jekyll to do the rendering itself. The jekyll-paginate process does this by appending a |
@parkr Nice catch! I'll see about fixing that up and just adding it as a Page. |
I’m not sure if I’m misunderstanding the status of this issue, but is there a workaround for this currently, or does the jekyll-archives plugin need to be fixed? |
@matthewmcvickar Sorry for the wait; I've been quite busy recently with school. I'll get around to this as soon as I have some time! |
Just looked into this again, and now I remember why I didn't append the archives to |
The only way to enforce this would be to render every item... |
You mean render every page as necessary? |
The markdownify filter might be useful for this.
|
While using markdownify does appear to render the markdown, it doesn't render {% highlight bash %} |
I had this same issue. I have an
and within my post include:
Since generators are run before renders, this might be the only solution (unless you do the markdown step in the generation in jekyll-archives itself... haven't looked at the code to see how possible that is) |
While the previous suggestion of an include works for markdown, it still doesn't render {% highlight bash %} blocks. Is there a similar method like markdownify that does render code highlights? hilightify?
|
Not to my knowledge. I've been able to get rid of the problem by downgrading from |
This still happens with jekyll-2.5.3 and jekyll-archives 2.0.0. @MaximeKjaer, what is your setup where you can get post.content rendered from a jekyll-archives layout? |
目前 `jekyll-archives` 插件[存在不能解析文章内容的 Bug](https://github.com/jekyll/jekyll-archives/issues/28),等待官方更新。
@DylanVann If content written in markdown needs to be run through a filter to be displayed properly, shouldn't that be added to the documents? Or is this thread actually not a question, but a bug? |
Any feedback on this issue?
Seeing this on jekyll 3.1.1 |
Just a note to say I ran into this today, too. |
I was having this problem, where a post preview would (only in some pages) show unrendered liquid code from some includes I had ` {{ post.content | strip_html | truncatewords:43 }} Since I wasn't able to find a solution I included this quick and dirty fix at the end of every page, until I find something better:
This uses jquery and js to get rid of |
I'm having this issue as well, however, part of the page is rendering but not all. Specifically, the unordered list is not rendering. repo:
|
Interestingly, my gh-pages site depends on |
@KendallPark I don't think your problem is related to |
Sorry if this is off-topic, but I ran across a similar issue with a very simple fix. My code to aggregate a list of book summaries looked like this:
The content wasn't formatted. So I tried the The following fixed it for me. (Note the unindented
|
@breakingespanol, when you wrap markdown in a (eg. |
Make Archive a subclass of Jekyll::Page, and render it using the regular Page pipleline. This should fix long-standing issue #28.
Make Archive a subclass of Jekyll::Page, and render it using the regular Page pipleline. This should fix long-standing issue #28.
Usa `post.excerpt` invece di `post.content` in quanto quest'ultimo può contenere codice Markdown non ancora renderizzato. Vedi [issue](jekyll/jekyll-archives#28). fixes #27
Got bitten by this in https://github.com/akka/blog Worked around with:
|
@2m Are you using |
Hm. You might be right. I am not that experienced in jekyll. If you say that you could not find jekyll-archives in the project, then I am not using it. Sorry for the noise here. The problem described here looked similar enough to the one I was having, therefore I assumed my blog was using jekyll-archives for displaying post archive. |
Hello everyone!! |
I'm committing this because it captures a repro for the situation described across these two issues: Refs: jekyll/jekyll-archives#28 Refs: jekyll/jekyll#6209 This commit has a workaround in place; to demonstrate the problem, change this line of `_layouts/default.html`: ``` {% include toc.html sanitize=true baseurl=p.url html=p_content %} ``` to: ``` {% include toc.html sanitize=true baseurl=p.url html=p.content %} ``` Then navigate to various pages: the TOC in the LHS inconsistently shows headers from different pages depending on the current page.
I think this issue and jekyll/jekyll#6209 have some similarities in how they manifest. I'm using GH pages with no explicit configuration of jekyll-archives so perhaps this issue is not the best one to remain open to track this. I pushed wez/wezterm@b0f2edd which captures the state of the weirdness in case someone would like to dig in and resolve things. I have a workaround that I'm "OK" to stick with for now. |
because this is a very old jekyll site and ya know, software see jekyll/jekyll-archives#28
Running into similar issue. The links.html doesn't get rendered correctly for a few when the HTML files are getting generated. |
I'm displaying full posts in my archives but the post is displaying the raw markdown and not being rendered.
The text was updated successfully, but these errors were encountered: