UNPKG

hikaru-coffee

Version:

A static site generator that generates routes based on directories naturally.

70 lines (42 loc) 1.58 kB
Write Site ========== # TOC - For Users - [Install](install.md) - [Init](init.md) - [Config](config.md) - [Write](write.md) - [Command](command.md) - [Deploy](deploy.md) Hikaru won't create pages and posts, however, they have a readable format and you can create them by yourself. # Example file A page usually is a Markdown file which has a YAML front matter and a Markdown content like this: ```markdown --- title: Your page title date: 2018-08-08 09:27:00 layout: post --- Text before more will become excerpt. <!--more--> # Here are some contents. ## Here are some contents. ``` ## Front matter Front matter is written in YAML, which is in the head of file and between `---\n` and `\n---`. It is used to save metadata of a page. By default Hikaru needs following 3 option: ### `title` Your page's title, **NOT** URL, your page's URL depends on your page's filename. ### `date` Your page's writing date, you can set it as `YYYY-MM-DD HH:mm:ss` format. ### `layout` Your page's layout, which depends on which template of your theme will be used to render your page. Typically you need following layout pages: #### `index` This usually is a page that theme will put all posts with its excerpt inside. #### `archives` This usually is a page that theme will put all posts without its excerpt inside. #### `categories` This usually is a page that theme will create a nested list of all categories. #### `tags` This usually is a page that theme will create a tag cloud of all tags. Prev Page: [Config](config.md) Next Page: [Command](command.md)