Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add new posts to github pages without installing Jekyll locally

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.
like image 499
ako Avatar asked Apr 05 '15 17:04

ako


2 Answers

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


Editing a post

Also if your posts are not styled as your index.html is then this could mean that there is something wrong with your layouts.

like image 198
Ali Almoullim Avatar answered Sep 20 '22 14:09

Ali Almoullim


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.

like image 38
Relsqui Avatar answered Sep 19 '22 14:09

Relsqui