1
0
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:
Oliver Steele 2017-06-21 19:18:14 -04:00
parent 94ed67717f
commit aad84ef495

View File

@ -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) {