Skip to content

Commit

Permalink
Add missing ".adoc" extension in handler_page.go
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
anthonyfok committed Mar 25, 2015
1 parent be84f93 commit 0921761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/handler_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0921761

Please sign in to comment.