Closed tracker1 closed 7 years ago
Good idea, I'll considering add this feature, thanks!
@tracker1 I've added front-matter feature, but I didn't implement the replacement of front-matter variables in markdown files
# {title}
Both Jekyll and Hexo doesn't support this.
You can add
<h1>${frontMatter.title}</h1>
in the _layout.js
instead.
Awesome... should probably update the documentation, really happy to see this, thanks.
@tracker1 Updated README.md
没有汉语版本,差评
@wu529778790 即使看不懂英文,看 README 里面的代码应该基本上就知道怎么用了。 等我有空了再加上中文说明。
Would be really nice if this supported yaml front matter[1], when present passed as first parameter instead of title... This would allow for more dynamic options as well as some additional configurability (like not processing an item when the "published" date is in the future.
index.md
_layout.js
[1] http://assemble.io/docs/YAML-front-matter.html