-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
How to get the un-rendered content of a post? #2522
Comments
|
Yes, the rendered content. I use markdown files as my posts. Here is my code snippet.
The result of |
I can confirm that when using either Jekyll 1.5.1 |
I'm not sure if I'm understanding what you want, but if you want post.content converted from markdown you have to use a filter {{ post.content | markdownify }} |
@budparr Actually, |
@omegahm Yes. The behavior is really strange. |
Ah, I see. You said you were using md files, not html files. |
|
But it works differently for pages vs. posts vs. documents. This is thorny. |
Hi, I'm using Jekyll 2.0.3.
I want to get the un-rendered excerpt or content of a post. After a little investigation, I found that the values of
content
andexcerpt
are rendered HTML content. However, this reference says they are un-rendered content.I'm so confused. Is it outdated?
The text was updated successfully, but these errors were encountered: