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
Bjørn Erik Pedersen
7fbfedf013
tpl/collections: Return error on invalid input in in
...
See #5875
2019-04-19 08:58:12 +02:00
Bjørn Erik Pedersen
06f56fc983
tpl/collections: Make Pages etc. work with the in func
...
Fixes #5875
2019-04-18 23:42:01 +02:00
Bjørn Erik Pedersen
d7a67dcb51
tpl/collections: Make Pages etc. work in uniq
...
Fixes #5852
2019-04-18 16:50:13 +02:00
Bjørn Erik Pedersen
3e421bd47c
commands: Replace IsDraft with Draft in list command
...
Fixes #5873
2019-04-18 09:25:40 +02:00
hugoreleaser
1028760331
releaser: Prepare repository for 0.56.0-DEV
...
[ci skip]
2019-04-17 12:22:55 +00:00
hugoreleaser
9d02034881
releaser: Add release notes to /docs for release of 0.55.2
...
[ci skip]
2019-04-17 12:20:37 +00:00
hugoreleaser
ccfbb63d17
releaser: Bump versions for release of 0.55.2
...
[ci skip]
2019-04-17 12:20:37 +00:00
Bjørn Erik Pedersen
fcd63a865e
Release 0.55.2
2019-04-17 14:13:46 +02:00
hugoreleaser
7ace59d5bf
releaser: Add release notes draft for 0.55.2
...
Rename to *-ready.md to continue. [ci skip]
2019-04-17 12:10:37 +00:00
Bjørn Erik Pedersen
35f41834ea
hugolib: Add more tests for Permalinkable
...
See #5849
2019-04-17 13:26:27 +02:00
Bjørn Erik Pedersen
9b17cbb62a
hugolib: Fix Pages reinitialization on rebuilds
...
Which had some unpredictable behaviour when using `.Pages` on home page etc. that had a content page.
Fixes #5833
2019-04-17 12:56:46 +02:00
Bjørn Erik Pedersen
2957795f52
tpl/tplimpl: Handle late transformation of templates
...
Fixes #5865
2019-04-16 21:24:09 +02:00
Bjørn Erik Pedersen
56550d1e44
hugolib: Fix shortcode namespace issue
...
Fixes #5863
2019-04-15 18:31:56 +02:00
Bjørn Erik Pedersen
7881b0965f
hugolib: Fix false WARNINGs in lang prefix check
...
Add a slash to the check to make it less likely to match a valid value.
Fixes #5860
2019-04-15 17:12:29 +02:00
Bjørn Erik Pedersen
49d0a82641
hugolib: Fix bundle resource publishing when multiple output formats
...
The faulty logic published the bundled resources for the "first output" format.
This worked most of the time, but since the output formats list is sorted,
any output format only used for some of the pages (e.g. CSS) would not work properly.
Fixes #5858
2019-04-15 17:01:39 +02:00
Bjørn Erik Pedersen
b799b12f4a
hugolib: Fix panic for unused taxonomy content files
...
In Hugo 0.55 we connected the taxonomy nodes with their owning Page.
This failed if you had, say, a content file for a author that did not author anything in the site:
```
content/authors/silent-persin/_index.md
```
Fixes #5847
2019-04-15 13:36:05 +02:00
Bjørn Erik Pedersen
701486728e
hugolib: Fix dates for sections with dates in front matter
...
Fixes #5854
2019-04-13 20:01:43 +02:00
Bjørn Erik Pedersen
f2795d4d2c
Fix WeightedPages in union etc.
...
We introduced a callback func() to get the owner Page in 0.55.0.
Sadly, funcs is not comparable type in Go.
This commit replaces the func with a struct pointer that wraps the Page.
Fixes #5850
2019-04-13 18:52:38 +02:00
hugoreleaser
e85c057f99
releaser: Prepare repository for 0.56.0-DEV
...
[ci skip]
2019-04-12 09:58:35 +00:00
hugoreleaser
223b3c2eec
releaser: Add release notes to /docs for release of 0.55.1
...
[ci skip]
2019-04-12 09:56:13 +00:00
hugoreleaser
7ca15c7ddb
releaser: Bump versions for release of 0.55.1
...
[ci skip]
2019-04-12 09:56:13 +00:00
Bjørn Erik Pedersen
adb776b22b
Release 0.55.1
2019-04-12 11:30:04 +02:00
hugoreleaser
5efdd14ebd
releaser: Add release notes draft for 0.55.1
...
Rename to *-ready.md to continue. [ci skip]
2019-04-12 09:29:27 +00:00
Bjørn Erik Pedersen
8d7607aed1
hugolib: Add a test for parent's resources in shortcode
...
See #5833
2019-04-12 10:44:21 +02:00
Bjørn Erik Pedersen
4d425a86f5
Fix
2019-04-12 10:26:10 +02:00
Bjørn Erik Pedersen
9e9a1f92ba
hugolib: Fix simple menu config
...
This stopped working in Hugo 0.55:
```bash
---
menu: "main"
---
```
This was also the case for using a slice of menu entries.
This still worked:
---
menu:
main:
weight: 30
---
2019-04-12 10:04:17 +02:00
Bjørn Erik Pedersen
f7375c4972
Fix paginator refresh on server change
...
Fixes #5838
2019-04-12 09:18:59 +02:00
Yihui Xie
7966c0b5b7
Remove the space in . RelPermalink
...
The same fix as 3b86b4a9f5
, applied to doc.
2019-04-10 22:45:20 +02:00
Bjørn Erik Pedersen
cc98fc8ad2
Merge commit '8b73644d81a81e82851b7f7c90aa8ab5524fbe93'
2019-04-09 23:59:59 +02:00
Bjørn Erik Pedersen
8b73644d81
Squashed 'docs/' changes from acf70cdd9..0f2bf195e
...
0f2bf195e Adjust shortcodes for 0.55
48c577121 Fix deprecation warnings
ed95a341a Update index.md
e4bc8981f Release 0.55.0
25acacb91 Merge branch 'temp55'
b240e321a releaser: Add release notes to /docs for release of 0.55.0
86a190c92 docs: Add information about summary front matter variable
9d94f4340 integrity: Add support for sha384
dd3fe9f92 Add HUGO_NUMWORKERMULTIPLIER
968372d86 Add trace.out to .gitignore
660772713 Add the Fireship images to cache
41a3e19cb hugolib: Allow page-relative aliases
4497e4b12 Update faq.md
b0ee3dccc output: Add missing JSON tag
173dac0b7 docs: Regenerate docshelper data
e30473062 docs: Regenerate CLI docs
8cb775be2 Merge commit 'c2037f0c9a3a35b9db9c404f6b5f94ec8b690a53'
5bc64bf44 Make Page an interface
371ff6c12 Add skipHTML option to blackfriday config
git-subtree-dir: docs
git-subtree-split: 0f2bf195ef549013cc843199fb50317b0d1a5e85
2019-04-09 23:59:13 +02:00
Bjørn Erik Pedersen
3b86b4a9f5
resources/page: Fix .RSSLinke deprecation message
...
Closes #4427
2019-04-09 16:47:29 +02:00
Bjørn Erik Pedersen
27a8049da7
tpl/tplimpl: Replace deprecated .GetParam usage
...
Fixes #5834
2019-04-09 16:39:12 +02:00
hugoreleaser
ee4274244b
releaser: Prepare repository for 0.56.0-DEV
...
[ci skip]
2019-04-08 16:42:12 +00:00
hugoreleaser
4333cc77fe
releaser: Add release notes to /docs for release of 0.55.0
...
[ci skip]
2019-04-08 16:39:45 +00:00