mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-27 08:24:39 +01:00
Write uses page content cache
This commit is contained in:
parent
94ed67717f
commit
aad84ef495
@ -137,6 +137,10 @@ func (page *DynamicPage) Output() bool {
|
||||
|
||||
// Write applies Liquid and Markdown, as appropriate.
|
||||
func (page *DynamicPage) Write(w io.Writer) (err error) {
|
||||
if page.processed != nil {
|
||||
_, err = w.Write(*page.processed)
|
||||
return
|
||||
}
|
||||
body, err := page.site.LiquidEngine().ParseAndRender(page.raw, page.Context())
|
||||
if err != nil {
|
||||
switch err := err.(type) {
|
||||
|
Loading…
Reference in New Issue
Block a user