Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jimmysawczuk/hugotpl

hugo template functions
https://github.com/jimmysawczuk/hugotpl

Last synced: 15 days ago
JSON representation

hugo template functions

Awesome Lists containing this project

README

        

# hugotpl

Some extra hugo template functions.

## Installation

```bash
# Get both source trees
go get github.com/gohugoio/hugo
go get github.com/jimmysawczuk/hugotpl

# Install the ext set of functions:
cd $GOPATH/gohugoio/hugo/tpl
ln -s ../../../jimmysawczuk/hugotpl/ext ext
```

Then, in `$GOPATH/gohugoio/hugo/tpl/tplimpl/template_funcs.go`, add the following import:

```go
import(
_ "github.com/gohugoio/hugo/tpl/ext" // symlink to $GOPATH/github.com/jimmysawczuk/hugotpl/ext
)
```

Finally, rebuild Hugo:

```bash
go install github.com/gohugoio/hugo
```