From 7ba3800c036c43b612e34ec2a4e8f5f6a8cc5841 Mon Sep 17 00:00:00 2001 From: Oliver Steele Date: Sun, 9 Jul 2017 14:31:47 -0400 Subject: [PATCH] Restore css --- README.md | 4 ++-- pipelines/pipeline.go | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f992650..003ff65 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![][travis-svg]][travis-url] [![][coveralls-svg]][coveralls-url] [![][go-report-card-svg]][go-report-card-url] [![][license-svg]][license-url] -Gojekyll is a clone of the [Jekyll](https://jekyllrb.com) static site generator, in the [Go](https://golang.org) programming language. +Gojekyll is a clone of the [Jekyll](https://jekyllrb.com) static site generator, written in the [Go](https://golang.org) programming language. @@ -51,7 +51,7 @@ I also wanted a faster way to preview changes to my sites that use GitHub Pages. ## Status -This is early-stage software. +This project is at an early stage of development. It works on the Google Pages sites that I care about, and it looks credible on a spot-check of other Jekyll sites. diff --git a/pipelines/pipeline.go b/pipelines/pipeline.go index 1d18cf2..76f7e1d 100644 --- a/pipelines/pipeline.go +++ b/pipelines/pipeline.go @@ -1,6 +1,7 @@ package pipelines import ( + "bytes" "io" "github.com/osteele/gojekyll/config" @@ -61,7 +62,11 @@ func (p *Pipeline) OutputExt(pathname string) string { // Render returns nil iff it wrote to the writer func (p *Pipeline) Render(w io.Writer, b []byte, filename string, lineNo int, e map[string]interface{}) ([]byte, error) { if p.config.IsSASSPath(filename) { - return nil, p.WriteSass(w, b) + buf := new(bytes.Buffer) + if err := p.WriteSass(buf, b); err != nil { + return nil, err + } + return buf.Bytes(), nil } b, err := p.renderTemplate(b, e, filename, lineNo) if err != nil {