Add missing ".adoc" extension in handler_page.go - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 0921761e473588cc600a91d76d60844aa28fa387
DIR parent be84f937169ebcd6b3f6d1d2323fb03feaa416f0
HTML Author: Anthony Fok <foka@debian.org>
Date: Tue, 24 Mar 2015 20:27:06 -0600
Add missing ".adoc" extension in handler_page.go
Commit 358dcce supposedly added ".adoc" extension recognition
for AsciiDoc, but one place was missed.
Thanks to @sjfloat for reporting the bug!
See discussions at #470.
Diffstat:
M hugolib/handler_page.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/hugolib/handler_page.go b/hugolib/handler_page.go
@@ -91,7 +91,7 @@ type asciidocHandler struct {
basicPageHandler
}
-func (h asciidocHandler) Extensions() []string { return []string{"asciidoc", "ad"} }
+func (h asciidocHandler) Extensions() []string { return []string{"asciidoc", "adoc", "ad"} }
func (h asciidocHandler) PageConvert(p *Page, t tpl.Template) HandledResult {
p.ProcessShortcodes(t)