shithub: hugo

Download patch

ref: f0b3979a9fa0bb27d069fc3b4890850afd752238
parent: 4f66acdce7564fd4960fa2a2122069bcea8ec87d
author: bep <[email protected]>
date: Wed Jan 14 15:49:43 EST 2015

Disable shortcode processing for html files

May be enabled later, but then it will have to do the complete "shortcode dance".

See ##674

--- a/hugolib/handler_page.go
+++ b/hugolib/handler_page.go
@@ -81,7 +81,8 @@
 
 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}
 }