Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

A free and open-source forge that lives in your Git repo.

refactor

c5902451905acdaa478f8476844ccd4a510d9ca9 · Keenan Nemetz · 17d ago · parent ec2aba4b

internal/frontmatter/frontmatter.go → metadata/frontmatter.go +3−3

@@ -1,4 +1,4 @@
1 // Package frontmatter reads and writes the fenced block that every metadata file
1 // Frontmatter reads and writes the fenced block that every metadata file
2 2 // on refs/heads/vole begins with: `key: value` lines between two `---` fences,
3 3 // then the markdown body.
4 4 //
@@ -22,7 +22,7 @@
22 22 // title containing ` # `: YAML would read a comment and silently store a
23 23 // shorter title. RoundTrip closes that hole by comparing what the parser saw
24 24 // with what the line said.
25 package frontmatter
25 package metadata
26 26
27 27 import (
28 28 "errors"
@@ -141,7 +141,7 @@ type Doc struct {
141 141 }
142 142
143 143 // New starts an empty document.
144 func New() *Doc { return &Doc{} }
144 func NewDoc() *Doc { return &Doc{} }
145 145
146 146 // Text writes a free-text field, always double-quoted.
147 147 func (d *Doc) Text(key, value string) {