summaryrefslogtreecommitdiffstats
path: root/tpl
AgeCommit message (Collapse)Author
2020-12-02tpl: Add title parameter to YouTube shortcodeAndrew Zenk
2020-12-01tpl: Fix substr when length parameter is zeroCameron Moore
When length parameter is zero, always return an empty string. Updates #7993
2020-11-28tpl: Refactor and fix substr logicCameron Moore
Fix miscalculations when start is negative. Results should now match PHP substr. Fixes #7993
2020-11-20deps: Update to Chroma v0.8.2Bjørn Erik Pedersen
Closes #7970
2020-11-06Updated year in headerAdamKorcz
2020-11-06Added first fuzzerAdamKorcz
2020-10-29tpl: Fix reflection bug in mergeCameron Moore
Value.Type().Key() must only be called on map values. Fixes #7899
2020-10-22Allow getJSON errors to be ignoredBjø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-21tpl: Refactor time.AsTime location implementationCameron Moore
2020-10-21tpl: Update Hugo time to support optional [LOCATION] parameterMark Johnson
2020-10-16embedded: Always show page number when 5 pages or lessCameron Moore
Fixes #7523
2020-10-02tpl: Add Do Not Track (dnt) option to Vimeo shortcodeJosh 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-29langs/i18n: Upgrade to go-i18n v2Bjørn Erik Pedersen
Fixes #5242
2020-09-14tpl: Fix grammar in the new 'requires non-zero' error messageEvgeny Kuznetsov
2020-09-07Fix some change detection issues on server reloadsBjø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-28tpl: Add limit support to replaceRECameron 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-28tpl: Extend merge to accept multiple parametersCameron Moore
Fixes #7595
2020-08-28tpl: Add limit option to replace template functionCameron Moore
Updates #7586
2020-08-19Fail on partials with return when given none or a zero argumentBjø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-12Remove trailing whitespace and tabs from RSS templatesKyle 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-06Revert "Fix ellipsis display logic in pagination template"Joe Mooring
This reverts commit 2fa851e6500752c0cea1da5cfdfc6d99e0a81a71.
2020-07-31Fix ellipsis display logic in pagination templateJoe Mooring
Closes #7523
2020-07-23Fix date format in internal schema templateJoe Mooring
Prior to this change, the offset indicator for dates with positive offsets was rendered as + instead of +. Fixes #7495
2020-07-22resources/js: Simplify options handlingBjørn Erik Pedersen
Mostly to minify cache hash breakage. Updates #7499
2020-07-13Fix baseof block regressionBjørn Erik Pedersen
From Hugo 0.74.0. Fixes #7478
2020-07-13docs: Regenerate docs helperBjørn Erik Pedersen
2020-07-13Add proper Media Type handling in js.BuildBjørn Erik Pedersen
See #732
2020-07-13Add js.Build asset bundlingRemko Tronçon
Fixes #7321
2020-07-06Add openapi3.UnmarshalBjørn Erik Pedersen
Fixes #7442 Fixes #7443
2020-07-03Fix server reload when non-HTML shortcode changesBjørn Erik Pedersen
Fixes #7448
2020-07-03tpl/strings: Add strings.CountBjørn Erik Pedersen
Fixes #7453
2020-07-02tpl: Add debug.DumpBjørn Erik Pedersen
Fixes #3957
2020-07-01Add support for inline partialsBjørn Erik Pedersen
Fixes #7444
2020-06-12Regenerate templatesBjørn Erik Pedersen
2020-06-12Beautify HTML generated by pagination templateJoe Mooring
Fixes #7199.
2020-06-05tpl/crypto: Add hmacEdouard
2020-06-02tpl: Fix bad rounding in NumFmtSam Smith
strconv.FormatFloat doesn't round properly sometimes, this adds a different method of rounding, fixes #7116
2020-05-23Fix Go template script escapingBjørn Erik Pedersen
Fixes #6695
2020-05-14Add math.PowJoe Mooring
Closes #7266
2020-05-07Use .Lastmod for og:updated_timeDaniel Tipping
.Lastmod is the time at which the website was most recently updated, rather than .Date which is the time at which the website content file was created.
2020-05-02Add support for sort by booleanTom
2020-04-29Rename transpileJS to babelBjørn Erik Pedersen
And add a test. Updates #5764
2020-04-29resources: Add JavaScript transpiling solutionNiek de Wit
Add a new pipe called TranspileJS which uses the Babel cli. This makes it possible for users to write ES6 JavaScript code and transpile it to ES5 during website generation so that the code still works with older browser versions. Fixes #5764
2020-04-21tpl/tmplimpl/template: Change defer RLock to RUnlockBurtonQin
2020-04-08deps: Update to latest emoji packageElliott Sales de Andrade
2020-04-07Add basic "post resource publish support"Bjørn Erik Pedersen
Fixes #7146
2020-04-07tpl: Extend Jsonify to support options mapCameron Moore
Add support for prefix and indent options used by json.MarshalIndent from the Go stdlib.
2020-04-07tpl: Extend Jsonify to support optional indent parameterCameron Moore
Fixes #5040
2020-03-20Some minify configuration adjustmentsBjørn Erik Pedersen
2020-03-20Add minify configSatowTakeshi
Fixes #6750 Updates #6892