Skip to content
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

Pages are not rendering Liquid tags or Markdown #213

Open
axis7818 opened this issue Dec 25, 2019 · 0 comments
Open

Pages are not rendering Liquid tags or Markdown #213

axis7818 opened this issue Dec 25, 2019 · 0 comments

Comments

@axis7818
Copy link

@axis7818 axis7818 commented Dec 25, 2019

I recently forked the repository to build my own personal website. Everything was going smoothly until I tried to add 2 new pages. The first page was a markdown file, and the second was an html file that used Liquid tags. However, when launching the site with jekyll's server (bundle exec jekyll serve), I noticed that all of the markdown and liquid templates were rendering on the page without being processed, as if the content matched the source files.

After digging for a while, I realized that the file _includes/header.html assigns the content variable to page.content.

This overwrites Jekyll's intended purpose of the global content variable, which is to represent the rendered version of a page's content.

... the rendered content of the Post or Page being wrapped. Not defined in Post or Page files.


So I am curious if there is any reason for overriding this variable? It may cause others the same headache. I have removed the assignment from my fork and have not yet seen any side effects. I am happy to open a PR if it is indeed unneeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.