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 gohugoio#470.
  • Loading branch information
anthonyfok authored and tychoish committed Aug 13, 2017
1 parent 81b3e2b commit 0ded76a
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 0ded76a

Please sign in to comment.