dil

Creating Posts

2015-11-15

Tags: docs basics

To create a post just add a Markdown file in the posts directory. The file name and extension aren't important, only the content of the file.

All posts need to be stored directly in the posts directory. In other words, subdirectories in the posts directory are ignored when looking for posts.

Each post looks like this (it's the start of an actual post from my blog):

  • Line 1 is the post's title. If it starts with one or more #s they are stripped. So in this case the title becomes How I Switched from Java to JavaScript.
  • Line 3 is the post's date. It has to be in the *MMM d, YYYY* format.
  • Line 5 are comma separated post tags.
  • Anything below line 6 is the content of the post.

The post's title and date are required. Tags are optional.

Draft Posts

Any post can be marked as draft by simply moving it to the draft subdirectory of the posts directory. To unmark it just move it back to the posts directory.

Deleting a post is analogous to drafting: just remove it from the posts directory.

Next: Generating HTML Files for a Blog, aka Building a Blog


About me

Hi, i'm and this is my place.

This is my picture:


I'm a web developer. I like Ruby the most but i'm fine with other technology also. After all, it's just technology.

I work at topmonks.com. I also have my own tiny company Imagine Anything.

One of my side projects is DameData.cz. It's a web app which helps you to easily connect your business with accounting(czech market only right now). Check it out:

DameData.cz logo

Have a good one