Clarify the subset of front matter data rendered

This commit is contained in:
Timur Demin 2020-11-10 01:18:52 +05:00
parent adf921d2a5
commit 9ea608670f
No known key found for this signature in database
GPG key ID: 9EDF3F9D9286FA20

View file

@ -48,6 +48,9 @@ var yamlDelimiter = []byte("---\n")
// RenderMarkdown converts Markdown text to text/gemini using
// gomarkdown, appending Hugo YAML front matter data if any is present
// to the post header.
//
// Only a subset of front matter data parsed by Hugo is included in the
// final document. At this point it's just title and date.
func RenderMarkdown(md []byte) (geminiText []byte, err error) {
var metadata hugoMetadata
if len(md) > len(yamlDelimiter)*2 {