summaryrefslogtreecommitdiffstats
path: root/hugolib/page__per_output.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page__per_output.go')
-rw-r--r--hugolib/page__per_output.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/hugolib/page__per_output.go b/hugolib/page__per_output.go
index 03448ba80..59440c7cb 100644
--- a/hugolib/page__per_output.go
+++ b/hugolib/page__per_output.go
@@ -189,9 +189,10 @@ func newPageContentOutput(p *pageState, po *pageOutput) (*pageContentOutput, err
html := cp.p.s.ContentSpec.TrimShortHTML(b.Bytes())
cp.summary = helpers.BytesToHTML(html)
}
- }
- cp.content = helpers.BytesToHTML(cp.workContent)
+ cp.content = helpers.BytesToHTML(cp.workContent)
+
+ }
if !p.renderable {
err := cp.addSelfTemplate()
@@ -427,7 +428,7 @@ func (p *pageContentOutput) setWordCounts(isCJKLanguage bool) {
func (p *pageContentOutput) addSelfTemplate() error {
self := p.p.selfLayoutForOutput(p.f)
- err := p.p.s.TemplateHandler().AddLateTemplate(self, string(p.content))
+ err := p.p.s.Tmpl().(tpl.TemplateManager).AddLateTemplate(self, string(p.workContent))
if err != nil {
return err
}