Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-12hugolib: Fix testBjørn Erik Pedersen
2019-12-12Rework template handling for function and map lookupsBjørn Erik Pedersen
This is a big commit, but it deletes lots of code and simplifies a lot. * Resolving the template funcs at execution time means we don't have to create template clones per site * Having a custom map resolver means that we can remove the AST lower case transformation for the special lower case Params map Not only is the above easier to reason about, it's also faster, especially if you have more than one language, as in the benchmark below: ``` name old time/op new time/op delta SiteNew/Deep_content_tree-16 53.7ms ± 0% 48.1ms ± 2% -10.38% (p=0.029 n=4+4) name old alloc/op new alloc/op delta SiteNew/Deep_content_tree-16 41.0MB ± 0% 36.8MB ± 0% -10.26% (p=0.029 n=4+4) name old allocs/op new allocs/op delta SiteNew/Deep_content_tree-16 481k ± 0% 410k ± 0% -14.66% (p=0.029 n=4+4) ``` This should be even better if you also have lots of templates. Closes #6594
2019-12-12Create lightweight forks of text/template and html/templateBjørn Erik Pedersen
This commit also removes support for Ace and Amber templates. Updates #6594
2019-12-12markup/tableofcontents: Add config option for ordered listGavin D. Howard
2019-12-11deps: Update GoldmarkBjørn Erik Pedersen
2019-12-03tpl/partials: Allow any key type in partialCachedBjørn Erik Pedersen
Fixes #6572
2019-12-02markup: Reimplement pygmentsCodefencesGuessSyntaxBjørn Erik Pedersen
Fixes #6565
2019-11-29Fix headless regressionBjørn Erik Pedersen
Fixes #6552
2019-11-29deps: Update GoldmarkBjørn Erik Pedersen
Fixes #6549 Fixes #6551
2019-11-29hugolib: Fix timeout number parsing for YAML/JSON configBjørn Erik Pedersen
Where numbers are all floats. Fixes #6555
2019-11-27Add some internal template image testsBjørn Erik Pedersen
Closes #6542
2019-11-27hugolib: Disable test assertion on WindowsBjørn Erik Pedersen
2019-11-26hugolib: Fix cascade in server modeBjørn Erik Pedersen
Fixes #6538
2019-11-26hugolib: Fix .Sections vs siblingsBjørn Erik Pedersen
Fixes #6365
2019-11-26Fix language handling in ExecuteAsTemplateBjørn Erik Pedersen
Fixes #6331
2019-11-25hugolib: Adjust .Site.Permalinks deprecation levelBjørn Erik Pedersen
2019-11-25hugolib: Remove .Site.Ref/RelRefBjørn Erik Pedersen
2019-11-25Deprecate mmarkBjørn Erik Pedersen
Fixes #6486
2019-11-25hugolib: Fix recently broken timeout configBjørn Erik Pedersen
2019-11-25resources/images: Make the image cache more robustBjørn Erik Pedersen
Also allow timeout to be set as a duration string, e.g. `30s`. Fixes #6501
2019-11-25hugolib: Increase default timeout value to 30sBjørn Erik Pedersen
Fixes #6502
2019-11-25hubolig: Fix potential data raceBjørn Erik Pedersen
Fixes #6478
2019-11-23Add Goldmark as the new default markdown handlerBjørn Erik Pedersen
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo. If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration: ```toml [markup] defaultMarkdownHandler="blackfriday" ``` Fixes #5963 Fixes #1778 Fixes #6355
2019-11-22Fix Params case handling in the index, sort and where funcBjørn Erik Pedersen
This means that you can now do: ``` {{ range where .Site.Pages "Params.MYPARAM" "foo" }} ```
2019-11-22Fix GetPage Params case issueBjørn Erik Pedersen
Fixes #5946
2019-11-17hugolib: Add a benchmarkBjørn Erik Pedersen
2019-11-14hugolib: Fix emoji handling inside shortcodesBjørn Erik Pedersen
Fixes #6504
2019-11-10hubolib: Headless bundles should not be listed in .PagesBjørn Erik Pedersen
Fixes #6492
2019-11-06Prepare for GoldmarkBjørn Erik Pedersen
This commmit prepares for the addition of Goldmark as the new Markdown renderer in Hugo. This introduces a new `markup` package with some common interfaces and each implementation in its own package. See #5963
2019-11-06hugolib: Fix ref/relref anhcor handlingBjørn Erik Pedersen
Fixes #6481
2019-10-31hugofs: Fix crash in multilingual content fsBjørn Erik Pedersen
Fixes #6463
2019-10-28Adjust benchmark templatesBjørn Erik Pedersen
2019-10-20resources/images: Allow to set background fill colourBjørn Erik Pedersen
Closes #6298
2019-10-13resources/page: Use binary search in Pages.Prev/Next if possibleBjørn Erik Pedersen
This is obviously much faster for lager data sets: ```bash name old time/op new time/op delta SearchPage/ByWeight-100-4 267ns ± 4% 272ns ± 5% ~ (p=0.457 n=4+4) SearchPage/ByWeight-5000-4 10.8µs ± 3% 1.2µs ± 2% -88.99% (p=0.029 n=4+4) SearchPage/ByWeight-10000-4 21.1µs ± 1% 1.4µs ±11% -93.28% (p=0.029 n=4+4) ``` See #4500
2019-10-13Make Pages.Prev/Next work like the other Prev/Next methodsBjørn Erik Pedersen
Fixes #4500
2019-10-12tpl: Add optional "title" attribute to iframe in Vimeo shortcodeZach Bayoff
Add an optional "title" attribute to the iframe in the vimeo shortcode. If one is not given, the title attribute will default to "vimeo video". It is imperative for iframes to have a non-empty "title" attribute in order to meet WCAG2.0 accessibility guidelines https://www.w3.org/TR/WCAG20-TECHS/H64.
2019-10-10tpl: Make getJSON/getCVS accept non-string argsBjørn Erik Pedersen
This broke for the Twitter simple shortcode now that Shortcodes accepts typed arguments. Fixes #6382
2019-10-09Simplify test output to simplify diffingBjørn Erik Pedersen
2019-10-09deps: Update minify to v2.5.2Anthony Fok
- v2.5.1 removes import comments, solving a build error with Go 1.13 in GOPATH mode (used Debian packaging for example) - v2.5.2 no longer converts polyline/rect/polygon/line to path as it has been reported to break a SVG referenced by CSS, see tdewolff/minify#260 The test case for Min SVG in TestResourceChains is updated accordingly. Fixes pocc/tshark.dev#33
2019-10-07Add BaseFs to RenderingContextNiklas Fasching
The org mode renderer supports including other files [1]. We don't want to allow reading of arbitrary files (go-org defaults to ioutil.ReadFile [2]) but want to make use of the FileSystem abstractions hugo provides. For starters we will allow reading from the content directory only [1]: e.g. `#+INCLUDE: ./foo.py src python` includes `foo.py` as a python source block.
2019-09-30Support typed bool, int and float in shortcode paramsBjørn Erik Pedersen
This means that you now can do: {{< vidur 9KvBeKu false true 32 3.14 >}} And the boolean and numeric values will be converted to `bool`, `int` and `float64`. If you want these to be strings, they must be quoted: {{< vidur 9KvBeKu "false" "true" "32" "3.14" >}} Fixes #6371
2019-09-19Add some more resource transform testsBjørn Erik Pedersen
See #6348
2019-09-19Fix cache key transformed resourcesBjørn Erik Pedersen
Fixes #6348
2019-09-12Fix cache keys for bundled resoures in transform.UnmarshalBjørn Erik Pedersen
Fixes #6327
2019-09-06Avoid writing the same processed image to /public twiceBjørn Erik Pedersen
Fixes #6307
2019-09-06hugolib: Fix broken bundle live reload logicBjørn Erik Pedersen
Fixes #6315 Updates #6308
2019-09-05Fix concat with fingerprint regressionBjørn Erik Pedersen
In Hugo 0.58 we optimized the transformers that only adjusted metadata, e.g. the fingerprint. This depended on the source readers implementing `io.ReadSeeker`. The reader produced by `concat` did that, but the implementation was buggy. This commit fixes that. Fixes #6309
2019-09-04Allow slices in the image Filter funcs, not just varargsBjørn Erik Pedersen
[ci skip] See #6255
2019-09-04hugolib: Adjust Go version specific testBjørn Erik Pedersen
See #6304
2019-09-03hugolib: Remove the old and slow site benchmarksBjørn Erik Pedersen