scotte / jekyll-clean

A simple and clean Jekyll theme that's easy to modify.
Other
175 stars 339 forks source link

Markdown not converted correctly #15

Closed Ri1a closed 6 years ago

Ri1a commented 6 years ago

Hi! I love your jekyll-clean theme!

Now I am encountering to a problem:

I want to add markdown sites, but not as _posts, just as sites. The folder with the .md file is located at /writeups/. But it's not formed correctly...

Here's the webpage: markdown_1

And here's a code snippet:

---
layout: page
title: Writeup's
permalink: /writeups/
---

Writeup's will be published in english! It may appear that the textstyle differs from other texts.

## Hacking Series

<a href="{{ site.baseurl }}/writeups/bwapp">bWAPP - buggy web app</a>

<a href="{{ site.baseurl }}/writeups/hackthebox">HackTheBox</a>

I want that it looks like a post, but not that it's a post:D

You have an idea?

scotte commented 6 years ago

That's just how Jekyll works - https://jekyllrb.com/docs/posts/#the-posts-folder

If there's another way to do it, I have no idea - you may want to consult the Jekyll documentation, but I don't think this has anything to do with the theme...

Ri1a commented 6 years ago

Hmmmm, on my old site this worked. In the folder /writeups/ I had a writeups.md file that worked.

scotte commented 6 years ago

Perhaps with a plugin or something like https://jekyllrb.com/docs/collections/ ? Kind of just guessing what it could be. https://jekyllrb.com/docs/templates/#link might be helpful too. Any reason you are using HTML hrefs instead of Markdown links?

You could always push that branch to github (not on master of course) and I can try and see if I can figure it out. Sometimes different versions of jekyll or other dependencies breaks things - but since your previous jekyll site was working OK I'll assume that's not the issue.

Happy to try and help, but I'm not too sure what's going on here. :-/

Ri1a commented 6 years ago

OK, I just forked the repo. Here's the link. Maybe you have an idea?

scotte commented 6 years ago

Ahha, very simple, I think... Looks like you need this file: https://github.com/Shadow2xx/shadow2xx.github.io/blob/master/_layouts/page.html - with that in place in _layouts, it seems to render fine. Give that a try...

The hint was when I ran it locally:

Build Warning: Layout 'page' requested in writeups/writeups.md does not exist.
Ri1a commented 6 years ago

Nice, now it works fine! Thank you so much!

Ri1a commented 6 years ago

GitHub Pages supports the markdown="1" attribute to parse markdown inside HTML elements, e.g.

Have **fun!**

Nice to know:D

solved

scotte commented 6 years ago

Great, I'm glad you got it all worked out!

scotte commented 6 years ago

Get rid of the ":" at line 3, column 26.

Ri1a commented 6 years ago

No error anymore, thanks!