Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-05-16 | Create a struct with all of Hugo's config options | Bjørn Erik Pedersen | |
Primary motivation is documentation, but it will also hopefully simplify the code. Also, * Lower case the default output format names; this is in line with the custom ones (map keys) and how it's treated all the places. This avoids doing `stringds.EqualFold` everywhere. Closes #10896 Closes #10620 | |||
2023-02-25 | Add a page template func | Bjørn Erik Pedersen | |
Fixes #9339 | |||
2022-05-08 | Use configured timeZone for the clock | Bjørn Erik Pedersen | |
And some other related adjustments. Updates #8787 | |||
2022-05-08 | Add `clock` cli flag | satotake | |
Close #8787 | |||
2022-05-06 | tpl: Improve godoc | Bjørn Erik Pedersen | |
2022-04-05 | Localize all the GroupBy*Date methods | Bjørn Erik Pedersen | |
Fixes #9745 | |||
2022-03-17 | all: gofmt -w -r 'interface{} -> any' . | Bjørn Erik Pedersen | |
Updates #9687 | |||
2022-02-24 | Add Markdown diagrams and render hooks for code blocks | Bjørn Erik Pedersen | |
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`). We also used this new hook to add support for diagrams in Hugo: * Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams. * Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information. Updates #7765 Closes #9538 Fixes #9553 Fixes #8520 Fixes #6702 Fixes #9558 | |||
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 |