Disable shortcode processing for html files - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit f0b3979a9fa0bb27d069fc3b4890850afd752238
(DIR) parent 4f66acdce7564fd4960fa2a2122069bcea8ec87d
(HTM) Author: bep <bjorn.erik.pedersen@gmail.com>
Date: Wed, 14 Jan 2015 20:49:43 +0100
Disable shortcode processing for html files
May be enabled later, but then it will have to do the complete "shortcode dance".
See ##674
Diffstat:
M hugolib/handler_page.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/hugolib/handler_page.go b/hugolib/handler_page.go
@@ -81,7 +81,8 @@ type htmlHandler struct {
func (h htmlHandler) Extensions() []string { return []string{"html", "htm"} }
func (h htmlHandler) PageConvert(p *Page, t tpl.Template) HandledResult {
- p.ProcessShortcodes(t)
+ // see #674 - disabled by bjornerik for now
+ // p.ProcessShortcodes(t)
p.Content = helpers.BytesToHTML(p.rawContent)
return HandledResult{err: nil}
}