The nico markup is borrowed from liquidluck, it's simple and elegant, even without nico, it can render pretty well.
Here is a simple example:
An article contains four part, which are title, meta, description and content. Title and content are required, others are not.
Meta data is important, it makes article meaningful. Take
pubdate as an example, an article with
pubdate is POST, otherwise, it's PAGE. A post is rendered by PostWriter, and page is render by PageWriter.
Built-in supported meta data:
- pubdate: the time when the article is published
- tags: just tags, it will turn into Array
- status: status of an article, default is public, other choices are secret and draft
- template: the template that will render the article, post use post.html as default, page use page.html
You can access meta data in theme templates with something like
Want define more meta data? It's easy:
- topic: nico
But you need to get the meta data in theme templates with
Markdown Basic Syntax
If you are not familiar with Markdown, you should spend 15 minutes and go over the excellent Markdown Syntax Guide at Daring Fireball. Here is a brief.
Strong and Emphasize
*emphasize* **strong** _emphasize_ __strong__
Links and Email
[link text](http://url.com/ "title") [link text](http://url.com/) <http://url.com>
[link text][id] [id]: http://url.com "title"
![alt text](http://path/to/img.jpg "title") ![alt text](http://path/to/img.jpg)
![alt text][id] [id]: http://path/to/img.jpg "title"
# h1 ## h2 ### h3 …
# h1 # ## h2 ## …
1. foo 2. bar
* foo * bar
- foo - bar
> blockquote > > nested blockquote > ### h3 in blockquote
Indent at least 4 spaces or 1 tab.
This is a normal paragraph this is code block
Markdown Extra Syntax
Extra syntax is powered by nico.
``` this is a code block ```
Fenced Code with Highlight
Highlight Code with Inserted Code
Just insert code
Iframe will be render by the template
````iframe This will be an iframe ```` ````iframe:400 This iframe with 400px height ````
Wow, you can see, nico is really friendly to front-end developers.