Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-10-30 | tpl/time: Use configured location when date passed to Format is string | Bjørn Erik Pedersen | |
Updates #9084 | |||
2021-08-10 | Revert "tpl/time: Handle nil values in time.AsTime" | Bjørn Erik Pedersen | |
This reverts commit 3e11072892ca31bb76980ee38890a4bd92d83dfd. | |||
2021-08-09 | tpl/time: Handle nil values in time.AsTime | Bjørn Erik Pedersen | |
Closes #8865 | |||
2021-08-03 | tpl/time: Adjust tests to handle matching local time zones | Bjørn Erik Pedersen | |
Closes #8843 | |||
2021-08-02 | Reduce binary size vs locale, update to CLDR v36.1 | Bjørn Erik Pedersen | |
Test building with `go build -ldflags="-s -w"` Hugo 0.86.2: 46MB Before this commit: 77MB After this commit: 54MB Fixes #8839 Fixes #8841 | |||
2021-08-01 | Fix error handling for the time func alias | Bjørn Erik Pedersen | |
Fixes #8835 | |||
2021-07-29 | tpl/lang: Add new localized versions of lang.FormatNumber etc. | Bjørn Erik Pedersen | |
Fixes #8820 | |||
2021-07-28 | Handle toml.LocalDate and toml.LocalDateTime in front matter | Bjørn Erik Pedersen | |
See #8801 | |||
2021-07-27 | Add timezone support for front matter dates without one | Bjørn Erik Pedersen | |
Fixes #8810 | |||
2021-07-27 | Localize time.Format | Bjørn Erik Pedersen | |
Fixes #8797 | |||
2020-12-03 | all: Format code with gofumpt | Bjørn Erik Pedersen | |
See https://github.com/mvdan/gofumpt | |||
2020-10-21 | tpl: Refactor time.AsTime location implementation | Cameron Moore | |
2020-10-21 | tpl: Update Hugo time to support optional [LOCATION] parameter | Mark Johnson | |
2019-08-12 | tests: Convert from testify to quicktest | Bjørn Erik Pedersen | |
2018-11-30 | tpl: Add godoc packages comments | Cameron Moore | |
Also fix package name in tpl/templates. | |||
2017-09-09 | tpl/time: Add time.Duration and time.ParseDuration template funcs | Bjørn Erik Pedersen | |
And with time.Duration with the convenient alias `duration`: ``` {{ mul 60 60 | duration "second" }} ``` Fixes #3828 | |||
2017-06-13 | all: Update import paths to gohugoio/hugo | Bjørn Erik Pedersen | |
2017-05-20 | tpl/time: Re-add the time example | Bjørn Erik Pedersen | |
2017-05-20 | tpl: Make the Namespace func signature explicit | Bjørn Erik Pedersen | |
This makes it cleaner and avoids breaking client code, such as the docs helper JSON generator. | |||
2017-05-20 | tpl/time: Remove asTime template func mapping | Cameron Moore | |
2017-05-20 | tpl/time: Support overlapping namespace and template func | Cameron Moore | |
Fixes #3421 | |||
2017-05-02 | tpl: Add basic tests for all namespace init funcs | Cameron Moore | |
2017-05-01 | tpl: Add docshelper for template funcs | Bjørn Erik Pedersen | |
And fix some other minor related issues. Updates #3418 | |||
2017-05-01 | tpl: Fix the remaining template funcs namespace issues | Bjørn Erik Pedersen | |
See #3042 | |||
2017-05-01 | tpl/time: Make it a package that stands on its own | Bjørn Erik Pedersen | |
See #3042 | |||
2017-04-30 | tpl: Add template function namespaces | Cameron Moore | |
This commit moves almost all of the template functions into separate packages under tpl/ and adds a namespace framework. All changes should be backward compatible for end users, as all existing function names in the template funcMap are left intact. Seq and DoArithmatic have been moved out of the helpers package and into template namespaces. Most of the tests involved have been refactored, and many new tests have been written. There's still work to do, but this is a big improvement. I got a little overzealous and added some new functions along the way: - strings.Contains - strings.ContainsAny - strings.HasSuffix - strings.TrimPrefix - strings.TrimSuffix Documentation is forthcoming. Fixes #3042 |