hugo/tpl
Bjørn Erik Pedersen 0602135fd4
Make ge, le etc. work with the Hugo Version number
This means that you can do something ala:

```html
{{ if ge .Hugo.Version "0.36" }}Reasonable new Hugo version!{{ end }}
```

The intented use is feature toggling, but please note that it will take some time and Hugo versions until this can be trusted. It does not work in older Hugo versions.

Fixes #4443
2018-02-22 09:15:12 +01:00
..
cast tpl: Add float template function 2017-09-28 16:53:18 +02:00
collections tpl/collections: Seed random on init only 2018-01-27 18:51:12 +01:00
compare Make ge, le etc. work with the Hugo Version number 2018-02-22 09:15:12 +01:00
crypto all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
data Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
encoding all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
fmt tpl: Add errorf template function 2017-10-03 07:59:51 +02:00
images tpl/images: Close image file 2017-11-25 18:38:33 +01:00
inflect vendor: Fix Humanize for multi-byte runes 2017-11-28 21:16:01 +01:00
internal all: Fix spelling 2017-08-07 20:19:24 +02:00
lang Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
math tpl/math: Refactor Mod with cast 2017-10-30 21:55:36 +01:00
os tpl: Add os.fileExists template function 2017-09-28 19:52:34 +02:00
partials tpl/partials: Fix the lock contention in cached partial 2017-11-16 11:59:45 +01:00
safe Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
strings tpl/strings: Fix broken test 2017-12-17 18:06:55 +01:00
time tpl/time: Add time.Duration and time.ParseDuration template funcs 2017-09-09 09:43:00 +02:00
tplimpl Make ge, le etc. work with the Hugo Version number 2018-02-22 09:15:12 +01:00
transform tpl/transform: Add template func for TOML/JSON/YAML docs examples conversion 2018-02-10 12:36:31 +01:00
urls Add support for multiple staticDirs 2017-11-17 11:01:46 +01:00
template.go metrics: Add simple template metrics feature 2017-09-26 20:03:04 +02:00