summaryrefslogtreecommitdiffhomepage
path: root/common
AgeCommit message (Collapse)Author
2020-02-09releaser: Bump versions for release of 0.64.1hugoreleaser
[ci skip]
2020-02-04releaser: Prepare repository for 0.65.0-DEVhugoreleaser
[ci skip]
2020-02-04releaser: Bump versions for release of 0.64.0hugoreleaser
[ci skip]
2020-01-27releaser: Prepare repository for 0.64.0-DEVhugoreleaser
[ci skip]
2020-01-27releaser: Bump versions for release of 0.63.2hugoreleaser
[ci skip]
2020-01-23releaser: Prepare repository for 0.64.0-DEVhugoreleaser
[ci skip]
2020-01-23releaser: Bump versions for release of 0.63.1hugoreleaser
[ci skip]
2020-01-23releaser: Prepare repository for 0.64.0-DEVhugoreleaser
[ci skip]
2020-01-23releaser: Bump versions for release of 0.63.0hugoreleaser
[ci skip]
2020-01-22tpl/tplimpl: Rework template management to get rid of concurrency issuesBjørn Erik Pedersen
This more or less completes the simplification of the template handling code in Hugo started in v0.62. The main motivation was to fix a long lasting issue about a crash in HTML content files without front matter. But this commit also comes with a big functional improvement. As we now have moved the base template evaluation to the build stage we now use the same lookup rules for `baseof` as for `list` etc. type of templates. This means that in this simple example you can have a `baseof` template for the `blog` section without having to duplicate the others: ``` layouts ├── _default │   ├── baseof.html │   ├── list.html │   └── single.html └── blog └── baseof.html ``` Also, when simplifying code, you often get rid of some double work, as shown in the "site building" benchmarks below. These benchmarks looks suspiciously good, but I have repeated the below with ca. the same result. Compared to master: ``` name old time/op new time/op delta SiteNew/Bundle_with_image-16 13.1ms ± 1% 10.5ms ± 1% -19.34% (p=0.029 n=4+4) SiteNew/Bundle_with_JSON_file-16 13.0ms ± 0% 10.7ms ± 1% -18.05% (p=0.029 n=4+4) SiteNew/Tags_and_categories-16 46.4ms ± 2% 43.1ms ± 1% -7.15% (p=0.029 n=4+4) SiteNew/Canonify_URLs-16 52.2ms ± 2% 47.8ms ± 1% -8.30% (p=0.029 n=4+4) SiteNew/Deep_content_tree-16 77.9ms ± 1% 70.9ms ± 1% -9.01% (p=0.029 n=4+4) SiteNew/Many_HTML_templates-16 43.0ms ± 0% 37.2ms ± 1% -13.54% (p=0.029 n=4+4) SiteNew/Page_collections-16 58.2ms ± 1% 52.4ms ± 1% -9.95% (p=0.029 n=4+4) name old alloc/op new alloc/op delta SiteNew/Bundle_with_image-16 3.81MB ± 0% 2.22MB ± 0% -41.70% (p=0.029 n=4+4) SiteNew/Bundle_with_JSON_file-16 3.60MB ± 0% 2.01MB ± 0% -44.20% (p=0.029 n=4+4) SiteNew/Tags_and_categories-16 19.3MB ± 1% 14.1MB ± 0% -26.91% (p=0.029 n=4+4) SiteNew/Canonify_URLs-16 70.7MB ± 0% 69.0MB ± 0% -2.40% (p=0.029 n=4+4) SiteNew/Deep_content_tree-16 37.1MB ± 0% 31.2MB ± 0% -15.94% (p=0.029 n=4+4) SiteNew/Many_HTML_templates-16 17.6MB ± 0% 10.6MB ± 0% -39.92% (p=0.029 n=4+4) SiteNew/Page_collections-16 25.9MB ± 0% 21.2MB ± 0% -17.99% (p=0.029 n=4+4) name old allocs/op new allocs/op delta SiteNew/Bundle_with_image-16 52.3k ± 0% 26.1k ± 0% -50.18% (p=0.029 n=4+4) SiteNew/Bundle_with_JSON_file-16 52.3k ± 0% 26.1k ± 0% -50.16% (p=0.029 n=4+4) SiteNew/Tags_and_categories-16 336k ± 1% 269k ± 0% -19.90% (p=0.029 n=4+4) SiteNew/Canonify_URLs-16 422k ± 0% 395k ± 0% -6.43% (p=0.029 n=4+4) SiteNew/Deep_content_tree-16 401k ± 0% 313k ± 0% -21.79% (p=0.029 n=4+4) SiteNew/Many_HTML_templates-16 247k ± 0% 143k ± 0% -42.17% (p=0.029 n=4+4) SiteNew/Page_collections-16 282k ± 0% 207k ± 0% -26.55% (p=0.029 n=4+4) ``` Fixes #6716 Fixes #6760 Fixes #6768 Fixes #6778
2020-01-05releaser: Prepare repository for 0.63.0-DEVhugoreleaser
[ci skip]
2020-01-05releaser: Bump versions for release of 0.62.2hugoreleaser
[ci skip]
2020-01-04markup/goldmark: Make auto IDs GitHub compatibleBjørn Erik Pedersen
You can turn off this behaviour: ```toml [markup] [markup.goldmark] [markup.goldmark.parser] autoHeadingIDAsciiOnly = true ``` Note that the `anchorize` now adapts its behaviour depending on the default Markdown handler. Fixes #6616
2020-01-01releaser: Prepare repository for 0.63.0-DEVhugoreleaser
[ci skip]
2020-01-01releaser: Bump versions for release of 0.62.1hugoreleaser
[ci skip]
2019-12-23releaser: Prepare repository for 0.63.0-DEVhugoreleaser
[ci skip]
2019-12-23releaser: Bump versions for release of 0.62.0hugoreleaser
[ci skip]
2019-12-11releaser: Prepare repository for 0.62.0-DEVhugoreleaser
[ci skip]
2019-12-11releaser: Bump versions for release of 0.61.0hugoreleaser
[ci skip]
2019-11-29releaser: Prepare repository for 0.61.0-DEVhugoreleaser
[ci skip]
2019-11-29releaser: Bump versions for release of 0.60.1hugoreleaser
[ci skip]
2019-11-27releaser: Prepare repository for 0.61.0-DEVhugoreleaser
[ci skip]
2019-11-27releaser: Bump versions for release of 0.60.0hugoreleaser
[ci skip]
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-21common/para: Add parallel task executor helperBjørn Erik Pedersen
Usage of this will come later.
2019-11-21Add some more output if loading modules takes timeBjørn Erik Pedersen
Also include the time to collect modules etc. in the "Total in ..." time reported for the `hugo` command. Fixes #6519
2019-10-31releaser: Prepare repository for 0.60.0-DEVhugoreleaser
[ci skip]
2019-10-31releaser: Bump versions for release of 0.59.1hugoreleaser
[ci skip]
2019-10-24deps: Update to Chroma v0.6.8 to fix a crashBjørn Erik Pedersen
Also improve relevant logging. Fixes #6450
2019-10-21releaser: Prepare repository for 0.60.0-DEVhugoreleaser
[ci skip]
2019-10-21releaser: Bump versions for release of 0.59.0hugoreleaser
[ci skip]
2019-10-11common: Fix elements are doubling when append a not assignable typeVazrupe (HyeonGyu Lee)
Fixes #6188
2019-09-19releaser: Prepare repository for 0.59.0-DEVhugoreleaser
[ci skip]
2019-09-19releaser: Bump versions for release of 0.58.3hugoreleaser
[ci skip]
2019-09-13releaser: Prepare repository for 0.59.0-DEVhugoreleaser
[ci skip]
2019-09-13releaser: Bump versions for release of 0.58.2hugoreleaser
[ci skip]
2019-09-06releaser: Prepare repository for 0.59.0-DEVhugoreleaser
[ci skip]
2019-09-06releaser: Bump versions for release of 0.58.1hugoreleaser
[ci skip]
2019-09-04releaser: Prepare repository for 0.59.0-DEVhugoreleaser
[ci skip]
2019-09-04releaser: Bump versions for release of 0.58.0hugoreleaser
[ci skip]
2019-08-26Image resource refactorBjørn Erik Pedersen
This commit pulls most of the image related logic into its own package, to make it easier to reason about and extend. This is also a rewrite of the transformation logic used in Hugo Pipes, mostly to allow constructs like the one below: {{ ($myimg | fingerprint ).Width }} Fixes #5903 Fixes #6234 Fixes #6266
2019-08-17releaser: Prepare repository for 0.58.0-DEVhugoreleaser
[ci skip]
2019-08-17releaser: Bump versions for release of 0.57.2hugoreleaser
[ci skip]
2019-08-15releaser: Prepare repository for 0.58.0-DEVhugoreleaser
[ci skip]
2019-08-15releaser: Bump versions for release of 0.57.1hugoreleaser
[ci skip]
2019-08-14releaser: Prepare repository for 0.58.0-DEVhugoreleaser
[ci skip]
2019-08-14releaser: Bump versions for release of 0.57.0hugoreleaser
[ci skip]
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2019-08-10Fixed tautological error conditionsChristian Muehlhaeuser
Drop error & nil checks where the value can not have changed.
2019-08-08Simplify page tree logicBjørn Erik Pedersen
This is preparation for #6041. For historic reasons, the code for bulding the section tree and the taxonomies were very much separate. This works, but makes it hard to extend, maintain, and possibly not so fast as it could be. This simplification also introduces 3 slightly breaking changes, which I suspect most people will be pleased about. See referenced issues: This commit also switches the radix tree dependency to a mutable implementation: github.com/armon/go-radix. Fixes #6154 Fixes #6153 Fixes #6152