Joe
Joe

Reputation: 4514

Why is this Jekyll parses markdown in posts but NOT pages?

I have this Jekyll site for an open project that I am part of.

It's sitting on gh-Pages (you can see all the files here, and the problem happens both there and locally.

For each post, like [this one](https://raw.githubusercontent.com/eQualityTime/CommuniKate/gh-pages/_posts/2014-09-23-main-3.markdown, the markdown renders perfectly and displays what I want.

enter image description here

However, I also have a file called translation.md in the root directory (raw version.

This appears like this:

enter image description here

Which is... sub optimial.

Can anyone tell me what is going on here?

Upvotes: 1

Views: 38

Answers (1)

marcanuy
marcanuy

Reputation: 24012

Change page.content with content in _layouts/singlepage.html, so Jekyll process the markdown correctly:

  ....
  <div class="lead">
         {{content}}
  </div>
  ...

Upvotes: 1

Related Questions