1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-26 22:24:39 +01:00
Go to file
2017-06-11 18:59:02 -04:00
scripts Add a script to run non-test *.go files 2017-06-11 14:57:12 -04:00
test Make collections available to templates 2017-06-11 18:36:31 -04:00
.gitignore Initial 2017-06-10 15:38:09 -04:00
build.go Build honors permalinks 2017-06-11 14:57:57 -04:00
helpers_test.go Write tests 2017-06-11 16:00:03 -04:00
helpers.go Fix removeEmptyDirectories to ignore missing top-level directory 2017-06-11 18:12:33 -04:00
link_tag.go Collection and permalink wip 2017-06-10 17:51:46 -04:00
liquid_filters_test.go Write tests 2017-06-11 16:00:03 -04:00
liquid_filters.go Add a where_exp filter 2017-06-11 14:57:25 -04:00
main.go Improvements to subcommand impls 2017-06-11 18:11:52 -04:00
page.go Make collections available to templates 2017-06-11 18:36:31 -04:00
permalinks_test.go Write tests 2017-06-11 16:00:03 -04:00
README.md Update README 2017-06-11 18:59:02 -04:00
server.go More permalink template components; better error reporting 2017-06-11 11:51:25 -04:00
site.go Make collections available to templates 2017-06-11 18:36:31 -04:00

Go Jekyll

When I grow up, I want to be a Go implementation of Jekyll.

Status

This project is missing more functionality than it implements. It may accidentally work on tiny or simple sites, but I'd be surprised. Most egregious are an insufficiency of template variables, and limitations in the liquid library.

I'm writing this to learn my way around Go. It's not good for anytihng yet, and it may never come to anything.

Install

go get

Sometimes this relies on unmerged improvements to the acstech/liquid library. If you want this branch instead:

cd $(go env GOPATH)/src/github.com/acstech/liquid
git remote set-url origin https://github.com/osteele/liquid.git
git fetch
git reset --hard origin/master

Run

./scripts/gojekyll --source test build
./scripts/gojekyll --source test serve
./scripts/gojekyll --source test render index.md
./scripts/gojekyll --source test render /

--source DIR is optional.

build needn't be run before server. It serves from memory, and doesn't currently rebuild.

render renders a single file, identified by permalink if it starts with / and by pathname (relative to the source directory) if it doesn't.

Credits

The acstech/liquid fork of karlseguin/liquid.

Hugo isn't Jekyll-compatible (-), but actually works (+++).

License

MIT

Alternate Naming Possibilities

  • "Gekyll". (Hard or soft "g"? See gif.)
  • "Gekko"