Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Settings for Front Matters

Zhuochun edited this page Jul 29, 2018 · 2 revisions

Setup Custom Fields

  1. Add new config frontMatterCustomFields to your config. This stores key-value pair (fieldName: defaultValue).
  2. Update your frontMatter template, by reference to the fieldName.
frontMatterCustomFields:
  author: "Your Name Here"

frontMatter: """
 ---
 layout: "{layout}"
 title: "{title}"
 author: "{author}"
 date: "{date}"
 ---
"""

Setup Tags/Categories/Posts

Manage Tags

To manage tags/categories in front matter or search published posts when inserting links, the Markdown-Writer needs to read JSON files that contains the following information of your blog:

{
  "tags": [ "tag a", "tag b", "..." ],
  "categories": [ "category a", "category b", "..." ],
  "posts": [ {"title": "post a", "url": "url/to/post/a" } ]
}

If you use Jekyll/Octopress, download these scripts to your blog, generate and upload your blog again. Setup the full URLs to these files in Settings.

If you use Hexo, you can install hexo-generator-atom-markdown-writer-meta (Thanks to @timnew). Generate and upload your blog again. Setup the full URLs to these files in Settings.

Clone this wiki locally