Skip to content

Commit

Permalink
Clarify the subset of front matter data rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Nov 11, 2020
1 parent adf921d commit 9ea6086
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions render.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 9ea6086

Please sign in to comment.