mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Add Disqus support out of the box. Move template/bundle into hugolib.
This commit is contained in:
@@ -28,7 +28,6 @@ import (
|
||||
"github.com/spf13/cast"
|
||||
"github.com/spf13/hugo/helpers"
|
||||
"github.com/spf13/hugo/parser"
|
||||
"github.com/spf13/hugo/template/bundle"
|
||||
jww "github.com/spf13/jwalterweatherman"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/theplant/blackfriday"
|
||||
@@ -49,7 +48,7 @@ type Page struct {
|
||||
contentType string
|
||||
Draft bool
|
||||
Aliases []string
|
||||
Tmpl bundle.Template
|
||||
Tmpl Template
|
||||
Markup string
|
||||
renderable bool
|
||||
layout string
|
||||
@@ -519,7 +518,7 @@ func (page *Page) parse(reader io.Reader) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *Page) ProcessShortcodes(t bundle.Template) {
|
||||
func (p *Page) ProcessShortcodes(t Template) {
|
||||
p.rawContent = []byte(ShortcodesHandle(string(p.rawContent), p, t))
|
||||
p.Summary = template.HTML(ShortcodesHandle(string(p.Summary), p, t))
|
||||
}
|
||||
|
Reference in New Issue
Block a user