mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-27 04:46:32 +01:00
Restore css
This commit is contained in:
parent
9f65abc280
commit
7ba3800c03
@ -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.
|
||||
|
||||
<!-- TOC -->
|
||||
|
||||
@ -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.
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user