Content¶
Everything below the separator is the content. Content should be written in Markdown.
Catsup currently supports 3 types of post: Markdown, Text and HTML.
Post’s extension should be either .md
or .markdown
.
A sample post looks like
# Hello, World! <---- This is title
- time: 2013-08-25 23:30 <---- This is meta
- tags: hello world
---
Hello, World! <---- This is content
This is my first post in catsup.
I'm writing in **MarkDown** !
<strong>HTML is supported, too</strong>
```python
print("I love python")
```
A post consists of three parts:
Title should always on the first line and starts with #
Everything below the separator is the content. Content should be written in Markdown.
Catsup supports GitHub’s style code highlight, like this
```python
print("Hello World!")
```
Sometimes you may just want to write something without considering the syntax. Then you should use Text Post.
Text post’s extension should be .txt
.
The simplest text post looks like
Hello!
This is a text post.
If you want to write meta in a text post, write the meta in YAML format
---
title: Hello, World!
tags: Hello, World
time: 2014-01-04 20:56
---
Hello, World! I'm a text post.
HTML post is like Text Post, but you can use HTML in the content.
HTML post’s extension should be .txt
.
A HTML post looks like
---
title: Hello, World!
tags: Hello, World
time: 2014-01-04 20:56
---
<p>I'm writing HTML in catsup</p>
Meta is some information about the post. Note that meta is optional, and if your post have meta, remember to put a separator below the meta.
2013-08-25 11:10
Python, Program
page
to turn this post into a page.disabled
to forbid comment/this-post
The separator separates meta and content. It should be at least three -
---
It’s okay to make it longer
----------------
Page is a kind of post. Turn an ordinary post into page by adding - type: page
in post’s meta.
So, what’s the difference between page and post?