Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Dias <hacdias@gmail.com>2016-04-26 23:21:15 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-04-26 23:28:47 +0300
commit16b71bbbb4c283f29e6e757dbf1fc304703704a9 (patch)
treed00ea6843ef01808e5ec35cd53a645975f6f7a0d /parser/frontmatter.go
parentc5723a8931e58a3250590e055b0e6b126c680691 (diff)
Export "detectFrontMatter" to fix caddy-hugo
Closes #2108
Diffstat (limited to 'parser/frontmatter.go')
-rw-r--r--parser/frontmatter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go
index d12a7b6d6..b185526d7 100644
--- a/parser/frontmatter.go
+++ b/parser/frontmatter.go
@@ -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}