I created blog on github for a project using automatic generator and now I want to add new post. I added _posts folder and put file named 2015-04-05-post-name.md. Then I pushed all changes to repo on github. New page became available however it is not styled as index.html.
What do I do wrong? What I'm trying to achive is to be able to add new posts written in markdown but without installing jekyll on my pc. All new posts should look according to the overall style of blog.
Content of file looks like:
---
layout: post
title: Test Title
---
# First Post Header
Some text goes here.
Automatic generator is not for Jekyll, its for normal standalone html pages. You should start from here: barryclark/jekyll-now [github]
If you want a tool to make it easier to post to your Jekyll blog/website then there is Prose.io. According to their website:
It's a web-based interface for managing content on GitHub. Use it to create, edit, and delete files, and save your changes directly to GitHub
Also if your posts are not styled as your index.html is then this could mean that there is something wrong with your layouts.
The provided themes (at least the two I tried, Minimal and Slate) don't have a separate "post" layout, just one "default" layout. Because you've specified layout: post
(as instructed by the Jekyll docs), Jekyll is trying to find one and giving up. Remove the layout line entirely and it will fall back, correctly, to the default style. You don't have to create or edit a layout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With