Export "detectFrontMatter" to fix caddy-hugo

Closes #2108
This commit is contained in:
Henrique Dias 2016-04-26 21:21:15 +01:00 committed by Bjørn Erik Pedersen
parent c5723a8931
commit 16b71bbbb4
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@ func FormatSanitize(kind string) string {
}
}
func detectFrontMatter(mark rune) (f *frontmatterType) {
func DetectFrontMatter(mark rune) (f *frontmatterType) {
switch mark {
case '-':
return &frontmatterType{[]byte(YAMLDelim), []byte(YAMLDelim), HandleYAMLMetaData, false}

View file

@ -90,7 +90,7 @@ func (p *page) Metadata() (meta interface{}, err error) {
frontmatter := p.FrontMatter()
if len(frontmatter) != 0 {
fm := detectFrontMatter(rune(frontmatter[0]))
fm := DetectFrontMatter(rune(frontmatter[0]))
meta, err = fm.Parse(frontmatter)
if err != nil {
return