This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 46
Settings for Front Matters
Zhuochun edited this page Jul 29, 2018
·
2 revisions
- Add new config
frontMatterCustomFields
to your config. This stores key-value pair (fieldName: defaultValue
). - Update your
frontMatter
template, by reference to thefieldName
.
frontMatterCustomFields:
author: "Your Name Here"
frontMatter: """
---
layout: "{layout}"
title: "{title}"
author: "{author}"
date: "{date}"
---
"""
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.