Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmysawczuk/hugotpl
hugo template functions
https://github.com/jimmysawczuk/hugotpl
Last synced: 15 days ago
JSON representation
hugo template functions
- Host: GitHub
- URL: https://github.com/jimmysawczuk/hugotpl
- Owner: jimmysawczuk
- Created: 2017-06-24T20:44:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T19:13:14.000Z (almost 6 years ago)
- Last Synced: 2025-01-04T03:00:18.462Z (20 days ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```