hugoreleaser
8a1873a2d5
releaser: Add release notes draft for 0.55.6
...
Rename to *-ready.md to continue. [ci skip]
2019-05-18 07:39:23 +00:00
Bjørn Erik Pedersen
95ce2a40e7
hugolib: Prevent parallel server rebuilds
...
There have been reports about infrequent paginator crashes when running the Hugo server since 0.55.0.
The reason have been narrowed down to that of parallel rebuilds.
This isn't a new thing, but the changes in 0.55.0 made it extra important to serialize the page initialization.
This commit fixes that by protecting the `Build` method with a lock when running in server mode.
Fixes #5885
Fixes #5968
2019-05-18 09:01:40 +02:00
Rodolfo Carvalho
e22b3f54c3
tpl: Fix internal templates usage of safeHTMLAttr
...
The `safeHTMLAttr` function operates on a full attribute definition, not
just within the attribute value.
Docs: https://gohugo.io/functions/safehtmlattr/
For `opengraph.html`, run the whole `content` HTML attribute through
`safeHTMLAttr`. That will preserve `+` signs in formatted dates.
For `vimeo_simple.html`, `safeHTMLAttr` was in the context of an
attribute value, thus having no effect. In this case we could replace it
with `safeURL`, but since the code is coming from an API it is safer to
just let Go's template engine sanitize the value as it already does with
`provider_url`.
Fixes #5236 (no need to change Go upstream)
Related to #5246
2019-05-17 16:00:54 +02:00
Bjørn Erik Pedersen
71b8d8b6a4
Update to Go 1.12.5 and Go 1.11.10
...
Fixes #5944
2019-05-15 07:49:04 +02:00
Robert van Gent
5dc6d0df94
deploy: Add tests; fix Windows
2019-05-09 22:11:23 +02:00
Robert van Gent
527cf1ab03
deploy: Support configuration of upload order
2019-05-06 22:59:07 +02:00
Robert van Gent
f4956d9aae
deploy: Support invalidating a CloudFront CDN cache
2019-05-06 21:09:33 +02:00
Bjørn Erik Pedersen
2838d58b1d
i18n: Move the package below /langs
...
To get fewer top level packages.
2019-05-04 18:25:56 +02:00
Robert van Gent
f330e869e4
deploy: compute MD5 by reading if List didn't provide one
2019-05-04 09:31:34 +02:00
Robert van Gent
f2b5d4de34
Revert docs/config.toml changes
2019-05-03 17:58:40 +02:00
Bjørn Erik Pedersen
0091b1f893
travis: Use proxy.golang.org
2019-05-03 17:58:40 +02:00
Robert van Gent
c7165589b3
Add a "deploy" command
2019-05-03 17:58:40 +02:00
Bjørn Erik Pedersen
ad5703a917
hugolib: Disable racy test
...
See #5926
2019-05-03 09:20:39 +02:00
hugoreleaser
f94a388ad3
releaser: Prepare repository for 0.56.0-DEV
...
[ci skip]
2019-05-02 13:06:04 +00:00
hugoreleaser
a83256b9cd
releaser: Add release notes to /docs for release of 0.55.5
...
[ci skip]
2019-05-02 13:03:34 +00:00
hugoreleaser
77ad1336d2
releaser: Bump versions for release of 0.55.5
...
[ci skip]
2019-05-02 13:03:34 +00:00
Bjørn Erik Pedersen
e33ed29b75
Release 0.55.5
2019-05-02 14:50:04 +02:00
hugoreleaser
2fb708d3d0
releaser: Add release notes draft for 0.55.5
...
Rename to *-ready.md to continue. [ci skip]
2019-05-02 12:36:11 +00:00
Bjørn Erik Pedersen
cee181c3a6
docs: Regenerate docs helper
2019-05-02 14:26:02 +02:00
Bjørn Erik Pedersen
b1d438ea28
Merge commit 'f147b5c53eda15982e0fe762847532eeddb7485f'
2019-05-02 14:24:13 +02:00
Bjørn Erik Pedersen
f147b5c53e
Squashed 'docs/' changes from 13097daf2..50c02516c
...
50c02516c resources: Clean
380554caf Added Pharmaseal case study
bd462671d Fix typo
0522a2595 no -> fr
f2c4671db Fix broken Netlify setup
056da25f2 Release 0.55.4
2ddca746e Merge branch 'temp554'
3d6cf9967 releaser: Add release notes to /docs for release of 0.55.4
9dc637cab Minor link fix
95186103c Release 0.55.3
b2449cd25 releaser: Add release notes to /docs for release of 0.55.3
55934c3a2 docs: Regenerate docs helper
git-subtree-dir: docs
git-subtree-split: 50c02516cb7237dc1b95e98fe433327a4bcefc10
2019-05-02 14:23:40 +02:00
Bjørn Erik Pedersen
6b76841b05
output: Fix permalink in sitemap etc. when multiple permalinkable output formats
...
In Hugo 0.55.0 we made AMP `permalinkable`. We also render the output formats in their natural sort order, meaning `AMP` will be rendered before `HTML`. References in the sitemap would then point to the AMP version, and this is normally not what you'd want.
This commit fixes that by making `HTML` by default sort before the others.
If this is not you want, you can set `weight` on the output format configuration.
Fixes #5910
2019-05-02 14:23:16 +02:00
Bjørn Erik Pedersen
bcbed4ebda
hugolib: Fix PrevInSection/NextInSection for nested sections
...
This was broken in Hugo 0.55.0.
Fixes #5883
2019-05-01 19:34:28 +02:00
Bjørn Erik Pedersen
009076e5ee
lazy: Fix concurrent initialization order
...
Fixes #5901
2019-05-01 16:00:31 +02:00
David Birks
1cbb501be8
Update blackfriday to v1.5.2
2019-05-01 11:56:53 +02:00
Bjørn Erik Pedersen
66b143a01d
tpl/compare: Fix nil compare in eq/ne for interface values
...
Fixes #5905
2019-04-29 18:43:44 +02:00
Cameron Moore
4f93f8c670
tpl: Fix hugo package name and add godocs
2019-04-27 22:44:57 +02:00
Cameron Moore
f76e50118b
tpl: Provide more detailed errors in Where
2019-04-27 09:54:22 +02:00
hugoreleaser
f84df16fea
releaser: Prepare repository for 0.56.0-DEV
...
[ci skip]
2019-04-25 07:41:16 +00:00
hugoreleaser
579004178b
releaser: Add release notes to /docs for release of 0.55.4
...
[ci skip]
2019-04-25 07:38:48 +00:00
hugoreleaser
f2fbca23aa
releaser: Bump versions for release of 0.55.4
...
[ci skip]
2019-04-25 07:38:48 +00:00
Bjørn Erik Pedersen
1707f1a5f5
Release 0.55.4
2019-04-25 09:28:17 +02:00
hugoreleaser
211d667979
releaser: Add release notes draft for 0.55.4
...
Rename to *-ready.md to continue. [ci skip]
2019-04-25 07:26:35 +00:00
Bjørn Erik Pedersen
33c738116c
hugolib: Fix shortcode version=1 logic
...
Fixes #5831
2019-04-24 15:35:04 +02:00
Bjørn Erik Pedersen
69a56420ae
hugolib: Avoid recloning of shortcode templates
...
```bash
benchmark old ns/op new ns/op delta
BenchmarkSiteNew/Bundle_with_image-4 14572242 14382188 -1.30%
BenchmarkSiteNew/Bundle_with_JSON_file-4 13683922 13738196 +0.40%
BenchmarkSiteNew/Multiple_languages-4 41912231 25192494 -39.89%
benchmark old allocs new allocs delta
BenchmarkSiteNew/Bundle_with_image-4 57496 57493 -0.01%
BenchmarkSiteNew/Bundle_with_JSON_file-4 57492 57501 +0.02%
BenchmarkSiteNew/Multiple_languages-4 242422 118809 -50.99%
benchmark old bytes new bytes delta
BenchmarkSiteNew/Bundle_with_image-4 3845077 3844065 -0.03%
BenchmarkSiteNew/Bundle_with_JSON_file-4 3627442 3627798 +0.01%
BenchmarkSiteNew/Multiple_languages-4 13963502 7543885 -45.97%
```
Fixes #5890
2019-04-24 12:37:57 +02:00
Bjørn Erik Pedersen
4756ec3cd8
i18n: Avoid rebuilding the Translations map for every lookup
...
```bash
benchmark old ns/op new ns/op delta
BenchmarkI18nTranslate/all-present-4 764 757 -0.92%
BenchmarkI18nTranslate/present-in-default-4 2578 1457 -43.48%
BenchmarkI18nTranslate/present-in-current-4 764 766 +0.26%
BenchmarkI18nTranslate/missing-4 3362 1103 -67.19%
BenchmarkI18nTranslate/file-missing-4 4646 3611 -22.28%
BenchmarkI18nTranslate/context-provided-4 2013 2014 +0.05%
BenchmarkI18nTranslate/same-id-and-translation-4 1961 784 -60.02%
BenchmarkI18nTranslate/same-id-and-translation-default-4 3717 1405 -62.20%
BenchmarkI18nTranslate/unknown-language-code-4 1775 1787 +0.68%
benchmark old allocs new allocs delta
BenchmarkI18nTranslate/all-present-4 6 6 +0.00%
BenchmarkI18nTranslate/present-in-default-4 16 10 -37.50%
BenchmarkI18nTranslate/present-in-current-4 6 6 +0.00%
BenchmarkI18nTranslate/missing-4 20 8 -60.00%
BenchmarkI18nTranslate/file-missing-4 27 21 -22.22%
BenchmarkI18nTranslate/context-provided-4 15 15 +0.00%
BenchmarkI18nTranslate/same-id-and-translation-4 12 6 -50.00%
BenchmarkI18nTranslate/same-id-and-translation-default-4 22 10 -54.55%
BenchmarkI18nTranslate/unknown-language-code-4 13 13 +0.00%
benchmark old bytes new bytes delta
BenchmarkI18nTranslate/all-present-4 152 152 +0.00%
BenchmarkI18nTranslate/present-in-default-4 1144 216 -81.12%
BenchmarkI18nTranslate/present-in-current-4 152 152 +0.00%
BenchmarkI18nTranslate/missing-4 2008 152 -92.43%
BenchmarkI18nTranslate/file-missing-4 1208 600 -50.33%
BenchmarkI18nTranslate/context-provided-4 704 704 +0.00%
BenchmarkI18nTranslate/same-id-and-translation-4 1080 152 -85.93%
BenchmarkI18nTranslate/same-id-and-translation-default-4 2073 216 -89.58%
BenchmarkI18nTranslate/unknown-language-code-4 696 696 +0.00%
```
Fixes #5892
2019-04-23 21:40:50 +02:00
Bjørn Erik Pedersen
4c3c512038
commands: Init mem profile at the end
...
Much more useful ...
2019-04-23 17:14:02 +02:00
Bjørn Erik Pedersen
0775c98e6c
hugolib: No links for bundled pages
...
This fixes a bug introduced in Hugo 0.55.
Fixes #5882
2019-04-22 13:22:01 +02:00
hugoreleaser
1477fb33c9
releaser: Prepare repository for 0.56.0-DEV
...
[ci skip]
2019-04-20 14:25:57 +00:00
hugoreleaser
993b84333c
releaser: Add release notes to /docs for release of 0.55.3
...
[ci skip]
2019-04-20 14:23:12 +00:00
hugoreleaser
a9ee2ab58c
releaser: Bump versions for release of 0.55.3
...
[ci skip]
2019-04-20 14:23:12 +00:00
Bjørn Erik Pedersen
c85b726f8a
Release 0.55.3
2019-04-20 16:12:42 +02:00
hugoreleaser
89cf7a3f4b
releaser: Add release notes draft for 0.55.3
...
Rename to *-ready.md to continue. [ci skip]
2019-04-20 14:08:54 +00:00
Bjørn Erik Pedersen
75b16e30ec
docs: Regenerate docs helper
2019-04-20 15:20:08 +02:00
Bjørn Erik Pedersen
0508ca1856
Merge commit 'a0c28c943c2f4714fa340b22a583b96f5013090b'
2019-04-20 15:19:38 +02:00
Bjørn Erik Pedersen
a0c28c943c
Squashed 'docs/' changes from 0f2bf195e..13097daf2
...
13097daf2 Update shortcode docs vs 0.55
9a7e19231 Update URL docs for relative URLs etc
bd58dd877 Adjust Output Formats docs
f3e9fbc00 Document output format `permalinkable`
3778ce689 Update partials.md
7b207a404 Partial: Update variable name in example
7d7b1f03c Document partials returning a value.
7ae93b7ca Merge branch 'temp552'
81910d266 releaser: Add release notes to /docs for release of 0.55.2
c166cef47 Fix typo
23adeb672 Point mmark links to its new repository
369a87339 Merge branch 'temp551'
eb6097e9f Bump to 0.55.1
766ee61a8 releaser: Add release notes to /docs for release of 0.55.1
a5a5f5d75 Start of taxonomy docs update for Hugo 0.55
fb5f75e9a Remove the space in `. RelPermalink`
git-subtree-dir: docs
git-subtree-split: 13097daf2e22fabfdb7528ca8709e86dba2b4a72
2019-04-20 15:18:59 +02:00
Bjørn Erik Pedersen
c7dd66bfe2
Fix links for non-HTML output formats
...
They were not correct for regular pages.
Fixes #5877
2019-04-20 15:01:20 +02:00
Bjørn Erik Pedersen
7aeeb60d7e
hugolib: Add some OutputFormats.Get tests
...
See #5877
2019-04-19 10:52:31 +02:00
Bjørn Erik Pedersen
ea529c847e
Fix menu URL when multiple permalinkable output formats
...
In Hugo `0.55` we introduced the `permalinkable` config attribute on Output Format, default enabled for `AMP` and `HTML`.
This meant that a Page could have different `RelPermalink` and `Permalink` depending on the rendering format.
The menu `URL` did not reflect that fact.
Fixes #5849
2019-04-19 10:29:52 +02:00
Bjørn Erik Pedersen
6c80acbd5e
hugolib: Add some integration tests for in/uniq using Pages
...
See #5875
See #5852
2019-04-19 09:07:21 +02:00