Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-02-01 | tpl/data: Add default user-agent header for getJSON requests | Baris Ceviz | |
2021-01-23 | tpl/os: remove 1mb limit for readFile. | Aleksandr Demakin | |
2021-01-22 | tpl: Fix race condition in text template baseof | Cameron Moore | |
Copy most of the htmltemplate cloning to the textemplate implementation in the same function. | |||
2021-01-08 | tpl: Fix metrics hint tracking | Cameron Moore | |
When tracking for cache hints, track the same template name as the call to MeasureSince in Execute. When referencing a partial "foo", the value of `n` does not match `templ.Name()` (`partials/foo` versus `partials/foo.html`). This was causing hints to go untracked since there was no existing metric to append the hint to. Fixes #8125 | |||
2021-01-08 | tpl: Do not return errors in substr for out-of-bounds cases | Cameron Moore | |
Most other substr implementations don't error out in out-of-bounds cases but simply return an empty string (or a value that's printed as an empty string). We'll follow their lead and not exit template execution. Allow the user decide what to do with the empty result. Fixes #8113 | |||
2021-01-08 | tpl: Add missing test scenario for strings.Substr | Cameron Moore | |
2020-12-30 | Add Dart Sass support | Bjørn Erik Pedersen | |
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102 | |||
2020-12-19 | Improve LookPath | Bjørn Erik Pedersen | |
2020-12-16 | tpl: Regenerate templates | Bjørn Erik Pedersen | |
2020-12-16 | tpl: Fix series detection in opengraph | Maciej Sawicki | |
When inside front matter you specified series with spaces, then the opengraph template wouldn't detect other articles, because in `.Site.Taxonomies.series` they are stored by urlized key. Example: ```yaml # in front matter series: - My Series ``` ```gohtml {{/* in a template */}} {{- $series := index .Site.Taxonomies.series$name }} {{/* was resolved to */}} {{- $series := index {'my-series': ...} "MySeries" }} ``` | |||
2020-12-16 | all: Fix minor typos | Phil Davis | |
2020-12-03 | tpl/internal/go_templates: Revert formatting | Bjørn Erik Pedersen | |
Should make future fork synch easier. | |||
2020-12-03 | all: Format code with gofumpt | Bjørn Erik Pedersen | |
See https://github.com/mvdan/gofumpt | |||
2020-12-02 | tpl: Add title parameter to YouTube shortcode | Andrew Zenk | |
2020-12-02 | tpl: Fix substr when length parameter is zero | Cameron Moore | |
When length parameter is zero, always return an empty string. Updates #7993 | |||
2020-11-28 | tpl: Refactor and fix substr logic | Cameron Moore | |
Fix miscalculations when start is negative. Results should now match PHP substr. Fixes #7993 | |||
2020-11-20 | deps: Update to Chroma v0.8.2 | Bjørn Erik Pedersen | |
Closes #7970 | |||
2020-11-06 | Updated year in header | AdamKorcz | |
2020-11-06 | Added first fuzzer | AdamKorcz | |
2020-10-29 | tpl: Fix reflection bug in merge | Cameron Moore | |
Value.Type().Key() must only be called on map values. Fixes #7899 | |||
2020-10-22 | Allow getJSON errors to be ignored | Bjørn Erik Pedersen | |
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing). Fixes #7866 | |||
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 | |
2020-10-16 | embedded: Always show page number when 5 pages or less | Cameron Moore | |
Fixes #7523 | |||
2020-10-03 | tpl: Add Do Not Track (dnt) option to Vimeo shortcode | Josh Gerdes | |
Added a Vimeo EnableDNT privacy option to the Hugo config. This will enable the Vimeo 'Do Not Track' flag when either Vimeo shortcode tempalte options are used. When enabled, it will force the Vimeo player to be blocked from tracking any session data, including all cookies and stats. Fixes #7700 | |||
2020-09-29 | langs/i18n: Upgrade to go-i18n v2 | Bjørn Erik Pedersen | |
Fixes #5242 | |||
2020-09-14 | tpl: Fix grammar in the new 'requires non-zero' error message | Evgeny Kuznetsov | |
2020-09-07 | Fix some change detection issues on server reloads | Bjørn Erik Pedersen | |
* Fix change detection when .GetPage/site.GetPage is used from shortcode * Fix stale content for GetPage results with short name lookups on server reloads Fixes #7623 Fixes #7624 Fixes #7625 | |||
2020-08-28 | tpl: Add limit support to replaceRE | Cameron Moore | |
Go stdlib doesn't contain a limited replace in the regexp package, but we can accomplish the same thing with ReplaceAllStringFunc. Fixes #7586 | |||
2020-08-28 | tpl: Extend merge to accept multiple parameters | Cameron Moore | |
Fixes #7595 | |||
2020-08-28 | tpl: Add limit option to replace template function | Cameron Moore | |
Updates #7586 | |||
2020-08-19 | Fail on partials with return when given none or a zero argument | Bjørn Erik Pedersen | |
We need to make a proper fix for this, but it is better with an error than just silently continue. Fixes #7572 Updates #7528 | |||
2020-08-12 | Remove trailing whitespace and tabs from RSS templates | Kyle Anderson | |
The rss templates had some tab characters mixed in with the spaces. Additionally there would end up being trailing whitespace in output rss feeds, which looks red in git diff. | |||
2020-08-06 | Revert "Fix ellipsis display logic in pagination template" | Joe Mooring | |
This reverts commit 2fa851e6500752c0cea1da5cfdfc6d99e0a81a71. | |||
2020-07-31 | Fix ellipsis display logic in pagination template | Joe Mooring | |
Closes #7523 | |||
2020-07-23 | Fix date format in internal schema template | Joe Mooring | |
Prior to this change, the offset indicator for dates with positive offsets was rendered as + instead of +. Fixes #7495 | |||
2020-07-22 | resources/js: Simplify options handling | Bjørn Erik Pedersen | |
Mostly to minify cache hash breakage. Updates #7499 | |||
2020-07-13 | Fix baseof block regression | Bjørn Erik Pedersen | |
From Hugo 0.74.0. Fixes #7478 | |||
2020-07-13 | docs: Regenerate docs helper | Bjørn Erik Pedersen | |
2020-07-13 | Add proper Media Type handling in js.Build | Bjørn Erik Pedersen | |
See #732 | |||
2020-07-13 | Add js.Build asset bundling | Remko Tronçon | |
Fixes #7321 | |||
2020-07-06 | Add openapi3.Unmarshal | Bjørn Erik Pedersen | |
Fixes #7442 Fixes #7443 | |||
2020-07-04 | Fix server reload when non-HTML shortcode changes | Bjørn Erik Pedersen | |
Fixes #7448 | |||
2020-07-03 | tpl/strings: Add strings.Count | Bjørn Erik Pedersen | |
Fixes #7453 | |||
2020-07-02 | tpl: Add debug.Dump | Bjørn Erik Pedersen | |
Fixes #3957 | |||
2020-07-02 | Add support for inline partials | Bjørn Erik Pedersen | |
Fixes #7444 | |||
2020-06-12 | Regenerate templates | Bjørn Erik Pedersen | |
2020-06-12 | Beautify HTML generated by pagination template | Joe Mooring | |
Fixes #7199. | |||
2020-06-05 | tpl/crypto: Add hmac | Edouard | |
2020-06-02 | tpl: Fix bad rounding in NumFmt | Sam Smith | |
strconv.FormatFloat doesn't round properly sometimes, this adds a different method of rounding, fixes #7116 |