Bjørn Erik Pedersen [Fri, 19 Jan 2018 10:39:34 +0000 (11:39 +0100)]
output: Add some more layout docshelper variants
Bjørn Erik Pedersen [Fri, 19 Jan 2018 07:24:10 +0000 (08:24 +0100)]
hugolib: Add validation for defaultContentLanguage
When `languages` are defined, then `defaultContentLanguage` must match one of those.
Fixes #4298
hugoreleaser [Thu, 18 Jan 2018 10:16:12 +0000 (10:16 +0000)]
releaser: Prepare repository for 0.34-DEV
[ci skip]
hugoreleaser [Thu, 18 Jan 2018 10:13:30 +0000 (10:13 +0000)]
releaser: Add release notes to /docs for release of 0.33
[ci skip]
hugoreleaser [Thu, 18 Jan 2018 10:13:30 +0000 (10:13 +0000)]
releaser: Bump versions for release of 0.33
[ci skip]
Bjørn Erik Pedersen [Thu, 18 Jan 2018 09:56:35 +0000 (10:56 +0100)]
Release 0.33
hugoreleaser [Thu, 18 Jan 2018 09:24:11 +0000 (09:24 +0000)]
releaser: Add release notes draft for 0.33
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Thu, 18 Jan 2018 09:16:21 +0000 (10:16 +0100)]
output: Redo the docshelper layouts examples
Bjørn Erik Pedersen [Wed, 17 Jan 2018 21:33:07 +0000 (22:33 +0100)]
Bjørn Erik Pedersen [Wed, 17 Jan 2018 21:31:25 +0000 (22:31 +0100)]
Squashed 'docs/' changes from
ddb7d8fae..
56c34962c
56c34962c Fix multilingual config examples
14fa0b4ed Release 0.32.4
18779d54a releaser: Add release notes to /docs for release of 0.32.4
0d47d0673 releaser: Bump versions for release of 0.32.4
424acf02e Release 0.32.3
f6f04e084 releaser: Prepare repository for 0.33-DEV
1a9b36286 releaser: Add release notes to /docs for release of 0.32.3
9284c3284 releaser: Bump versions for release of 0.32.3
796082289 Fix min Go version in installing
74625a654 Add alias to multilingual.md
bf65732b4 Add some new tweets to the front page
7f263353e Bump Netlify to 0.32.2
cbb3a4f1c Update 0.32.2 release notes
e90ae4b4e releaser: Prepare repository for 0.33-DEV
ee74a8f4f releaser: Add release notes to /docs for release of 0.32.2
d889c4fa4 releaser: Bump versions for release of 0.32.2
4a46d3aca Merge commit '
eb738cd35cca1ffc68c5ed688dbe2a19108e8761'
b98d95ff2 releaser: Prepare repository for 0.33-DEV
git-subtree-dir: docs
git-subtree-split:
56c34962c92706792231fd5056d33186b11c4e33
Bjørn Erik Pedersen [Wed, 17 Jan 2018 18:26:34 +0000 (19:26 +0100)]
Improve .Site.GetPage for regular translated pages
You can still use the full path with extensions, but to get the current language version:
* If the content file lives in `/content/blog/mypost.en.md`
* Use `.Site.GetPage "page" "blog/mypost"`
Fixes #4285
Bjørn Erik Pedersen [Wed, 17 Jan 2018 19:47:35 +0000 (20:47 +0100)]
resource: Use path.Match instead of filepath.Match
They behave similar, but it is a path we're matching.
See #4244
Bjørn Erik Pedersen [Mon, 15 Jan 2018 19:40:39 +0000 (20:40 +0100)]
resource: Add front matter metadata to Resource
This commit expands the Resource interface with 3 new methods:
* Name
* Title
* Params
All of these can be set in the Page front matter. `Name` will get its default value from the base filename, and is the value used in the ByPrefix and GetByPrefix lookup methods.
Fixes #4244
Bjørn Erik Pedersen [Mon, 15 Jan 2018 19:33:03 +0000 (20:33 +0100)]
Update Afero to avoid panic on "file name is too long"
Fixes #4240
Bjørn Erik Pedersen [Mon, 15 Jan 2018 19:22:14 +0000 (20:22 +0100)]
resource: Fix handling of very long image file names
Fixes #4261
Bjørn Erik Pedersen [Mon, 15 Jan 2018 09:02:17 +0000 (10:02 +0100)]
commands: And now really fix the server watch logic
See #4275
Bjørn Erik Pedersen [Sun, 14 Jan 2018 19:58:52 +0000 (20:58 +0100)]
commands: Fix server without watch
This was broken in Hugo 0.30.
Fixes #4275
Bjørn Erik Pedersen [Sun, 14 Jan 2018 19:32:42 +0000 (20:32 +0100)]
Update Chroma and other third-party deps
Fixes #4267
Bjørn Erik Pedersen [Sun, 14 Jan 2018 19:08:28 +0000 (20:08 +0100)]
commands: Remove superflous BuildDate logic
Fixes #4272
Bjørn Erik Pedersen [Sat, 13 Jan 2018 16:21:42 +0000 (17:21 +0100)]
layout: Respect Type and Layout for list template selection
This commit also has some other nice side-effects:
* The layout logic is unified for all page types, which should make it less surprising
* Page.Render now supports all types
* The legacy "indexes" type is removed from the template lookup order. This is an undocumented type from early Hugo days. This means that having a template in, say, `/layouts/indexes/list.html` will no longer work.
* The theme override logic is improved. As an example, an `index.html` in theme will now wn over a `_default/list.html` in the project, which most will expect.
Fixes #3005
Fixes #3245
Bjørn Erik Pedersen [Sat, 13 Jan 2018 23:49:01 +0000 (00:49 +0100)]
Run benchmarks 3 times
Bjørn Erik Pedersen [Fri, 12 Jan 2018 23:08:21 +0000 (00:08 +0100)]
resource: Add some GoDoc
Bjørn Erik Pedersen [Fri, 12 Jan 2018 16:17:10 +0000 (17:17 +0100)]
hugolib: Allow url in front matter for list type pages
This enables some potential foot-shooting, but is needed for some special URL requirements.
Fixes #4263
Bjørn Erik Pedersen [Fri, 12 Jan 2018 17:06:35 +0000 (18:06 +0100)]
resource: Implement Resources.ByPrefix
Fixes #4266
Bjørn Erik Pedersen [Fri, 12 Jan 2018 16:46:50 +0000 (17:46 +0100)]
resource: Make GetByPrefix work for Page resources
Fixes #4264
Bjørn Erik Pedersen [Thu, 11 Jan 2018 16:46:43 +0000 (17:46 +0100)]
Support uglyURLs per section
Fixes #4256
Bjørn Erik Pedersen [Thu, 11 Jan 2018 17:58:53 +0000 (18:58 +0100)]
resource: Make .Resources.GetByPrefix case insensitive
Fixes #4258
Vas Sudanagunta [Wed, 3 Jan 2018 01:22:37 +0000 (20:22 -0500)]
Update CONTRIBUTING.md
Vas Sudanagunta [Wed, 3 Jan 2018 01:19:16 +0000 (20:19 -0500)]
Support offline builds
hugoreleaser [Thu, 11 Jan 2018 09:00:51 +0000 (09:00 +0000)]
releaser: Prepare repository for 0.33-DEV
[ci skip]
hugoreleaser [Thu, 11 Jan 2018 08:58:01 +0000 (08:58 +0000)]
releaser: Add release notes to /docs for release of 0.32.4
[ci skip]
hugoreleaser [Thu, 11 Jan 2018 08:58:01 +0000 (08:58 +0000)]
releaser: Bump versions for release of 0.32.4
[ci skip]
Bjørn Erik Pedersen [Thu, 11 Jan 2018 08:52:32 +0000 (09:52 +0100)]
Release 0.32.4
hugoreleaser [Thu, 11 Jan 2018 08:48:10 +0000 (08:48 +0000)]
releaser: Add release notes draft for 0.32.4
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Thu, 11 Jan 2018 08:39:42 +0000 (09:39 +0100)]
releaser: Git info bounds checking
Bjørn Erik Pedersen [Thu, 11 Jan 2018 08:17:48 +0000 (09:17 +0100)]
resource: Remove superflous comment
Alexander Borsuk [Wed, 10 Jan 2018 15:55:22 +0000 (18:55 +0300)]
Correct fix for --cleanDestinationDir flag
Fixes #4246
Fixes #4248
Alexander Borsuk [Wed, 10 Jan 2018 15:53:40 +0000 (18:53 +0300)]
Revert "Remove the --cleanDestinationDir flag", there is a better fix.
This reverts commit
768ec5df9fa8f91610ee80a9e6194f94a7dbe117.
Bjørn Erik Pedersen [Wed, 10 Jan 2018 09:20:08 +0000 (10:20 +0100)]
Fix non-ASCII path handling for Page resources
Fixes #4241
Bjørn Erik Pedersen [Wed, 10 Jan 2018 08:34:40 +0000 (09:34 +0100)]
Remove the --cleanDestinationDir flag
This is no longer supported. Since Hugo 0.32 we do static sync and build in parallel.
Closes #4246
hugoreleaser [Mon, 8 Jan 2018 11:12:41 +0000 (11:12 +0000)]
releaser: Prepare repository for 0.33-DEV
[ci skip]
hugoreleaser [Mon, 8 Jan 2018 11:10:08 +0000 (11:10 +0000)]
releaser: Add release notes to /docs for release of 0.32.3
[ci skip]
hugoreleaser [Mon, 8 Jan 2018 11:10:08 +0000 (11:10 +0000)]
releaser: Bump versions for release of 0.32.3
[ci skip]
Bjørn Erik Pedersen [Mon, 8 Jan 2018 11:05:52 +0000 (12:05 +0100)]
Release 0.32.2
hugoreleaser [Mon, 8 Jan 2018 10:57:07 +0000 (10:57 +0000)]
releaser: Add release notes draft for 0.32.3
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Mon, 8 Jan 2018 09:03:07 +0000 (10:03 +0100)]
hugolib: Fix handling of mixed-case taxonomy folders with content file
* We match by path vs taxonomy to determine if we have a content page for that taxonomy
* The taxonomy name is (if `preserveTaxonomyNames` is not set) normalized to `maxmustermann` while you have the disk folder called `MaxMustermann`.
* This isn't a new issue, but I suspect most people will just name the folder `authors/maxmustermann` and it will just work.
* The inconsistent behaviour you see here is that you will end up with two pages with the same target filename, so it is a little random who will win.
This fixes that by also normalizing the taxonomy path when doing the comparison.
Fixes #4238
Bjørn Erik Pedersen [Sun, 7 Jan 2018 10:29:02 +0000 (11:29 +0100)]
resource: Avoid processing and storing same image for each language
Fixes #4231
Bjørn Erik Pedersen [Sun, 7 Jan 2018 09:53:45 +0000 (10:53 +0100)]
resource: Resources.ByType should return Resources
Currently it returns []Resource.
This way the invocations can be nested.
Fixes #4234
Bjørn Erik Pedersen [Sat, 6 Jan 2018 17:42:32 +0000 (18:42 +0100)]
Fix multihost detection for sites without language definition
Static content was wrongly put into the lang-code subfolder.
Fixes #4221
Bjørn Erik Pedersen [Sat, 6 Jan 2018 09:54:16 +0000 (10:54 +0100)]
commands: Report build time on config.toml change
Fixes #4232
See #4224
Bjørn Erik Pedersen [Sat, 6 Jan 2018 09:37:04 +0000 (10:37 +0100)]
Fix hugo benchmark --renderToMemory
Fixes #4218
Bjørn Erik Pedersen [Fri, 5 Jan 2018 11:01:13 +0000 (12:01 +0100)]
Fix URLs for bundle resources in multihost mode
Fixes #4217
Bjørn Erik Pedersen [Fri, 5 Jan 2018 10:07:50 +0000 (11:07 +0100)]
Fix sub-folder baseURL handling for Page resources
I.e. images etc.
Fixes #4228
hugoreleaser [Wed, 3 Jan 2018 09:56:18 +0000 (09:56 +0000)]
releaser: Prepare repository for 0.33-DEV
[ci skip]
hugoreleaser [Wed, 3 Jan 2018 09:54:04 +0000 (09:54 +0000)]
releaser: Add release notes to /docs for release of 0.32.2
[ci skip]
hugoreleaser [Wed, 3 Jan 2018 09:54:04 +0000 (09:54 +0000)]
releaser: Bump versions for release of 0.32.2
[ci skip]
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:50:57 +0000 (10:50 +0100)]
Release 0.32.2
hugoreleaser [Wed, 3 Jan 2018 09:49:11 +0000 (09:49 +0000)]
releaser: Add release notes draft for 0.32.2
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:28:16 +0000 (10:28 +0100)]
resource: Handle publish to /public on fresh build
Fixes #4213
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:19:56 +0000 (10:19 +0100)]
Bjørn Erik Pedersen [Wed, 3 Jan 2018 09:16:56 +0000 (10:16 +0100)]
Squashed 'docs/' changes from
fc61378a3..
ddb7d8fae
ddb7d8fae Fix spelling in error message
84f7e09ff Add an "sharing image" to the 0.32 doc
a6d39884c Add image processing examples
717e25400 Release 0.32.1
07a4fc1c1 Merge branch 'temp321'
401ed894b releaser: Add release notes to /docs for release of 0.32.1
aa040d965 releaser: Bump versions for release of 0.32.1
6d22558ec Close shortcode
442afa7f5 Add a link to the 0.32 HOWTO with a searchable title
9a9a7e475 Add a note about the shortcode issue
76d731ce2 Add title etc. to release notes
eac596de8 Release v0.32
ede3e25dc Merge branch 'tmp32'
c92f1701b releaser: Prepare repository for 0.33-DEV
e498e97f9 releaser: Add release notes to /docs for release of 0.32
1d476fc59 Fix typo
9bac78a2f Merge commit '
f3cd083961f36dc96d05e98aaf67f650102bc757'
7d8c78391 Add Pandoc support, refactor external helpers
git-subtree-dir: docs
git-subtree-split:
ddb7d8fae07ee8813652d20829d606dd6637f0a9
hugoreleaser [Tue, 2 Jan 2018 09:10:11 +0000 (09:10 +0000)]
releaser: Prepare repository for 0.33-DEV
[ci skip]
hugoreleaser [Tue, 2 Jan 2018 09:07:55 +0000 (09:07 +0000)]
releaser: Add release notes to /docs for release of 0.32.1
[ci skip]
hugoreleaser [Tue, 2 Jan 2018 09:07:55 +0000 (09:07 +0000)]
releaser: Bump versions for release of 0.32.1
[ci skip]
Bjørn Erik Pedersen [Tue, 2 Jan 2018 09:04:21 +0000 (10:04 +0100)]
Release Hugo 0.32.1
hugoreleaser [Tue, 2 Jan 2018 08:59:40 +0000 (08:59 +0000)]
releaser: Add release notes draft for 0.32.1
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Tue, 2 Jan 2018 08:40:58 +0000 (09:40 +0100)]
commands: Fix broken hugo --renderToMemory
The `--renderToMemory` flag stopped working on `hugo` in 0.32.
Note that this is only useful for benchmark testing, as there is no easy way to actually view the result.
Fixes #4212
Bjørn Erik Pedersen [Mon, 1 Jan 2018 13:28:19 +0000 (14:28 +0100)]
resource: Use the correct Destination FS
Source and destination will be the same when this happens, but it should be correct.
See #4202
Bjørn Erik Pedersen [Mon, 1 Jan 2018 13:23:51 +0000 (14:23 +0100)]
resource: Create target dir if not exists
This is the case where image processing is triggered from shortcodes, i.e. before the target page's folder in /public is created.
Fixes #4202
Bjørn Erik Pedersen [Mon, 1 Jan 2018 10:07:23 +0000 (11:07 +0100)]
hugolib: Add test for image processing from shortcodes
See #4202
hugoreleaser [Sun, 31 Dec 2017 09:26:48 +0000 (09:26 +0000)]
releaser: Prepare repository for 0.33-DEV
[ci skip]
hugoreleaser [Sun, 31 Dec 2017 09:24:45 +0000 (09:24 +0000)]
releaser: Add release notes to /docs for release of 0.32
[ci skip]
hugoreleaser [Sun, 31 Dec 2017 09:24:45 +0000 (09:24 +0000)]
releaser: Bump versions for release of 0.32
[ci skip]
Bjørn Erik Pedersen [Sun, 31 Dec 2017 09:17:39 +0000 (10:17 +0100)]
Release v0.32
hugoreleaser [Sat, 30 Dec 2017 08:25:56 +0000 (08:25 +0000)]
releaser: Add release notes draft for 0.32
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Sat, 30 Dec 2017 08:17:23 +0000 (09:17 +0100)]
Bjørn Erik Pedersen [Sat, 30 Dec 2017 08:15:31 +0000 (09:15 +0100)]
Squashed 'docs/' changes from
3e663efb2..
fc61378a3
fc61378a3 Add Hugo 0.32 related docs
77edf7fd7 commands: Regenerate
af9d25458 Fix Blackfriday's Markdown extension name
1223dd63a Remove roadmap
b8bcb2fb8 Include note to allow hugo write permissions outside home dir
7dbccb936 Fix typo in roadmap
3a38da6f5 Fix spelling
94ebe50ff Merge branch 'master' of github.com:gohugoio/hugoDocs
89376e21d Clarify Hugo Roadmap
03d191fec Mention Reverse function in taxonomy tpl page.
a4ea3402d Fix ref and relref function pages.
b36632b31 Remove non-existing source variable
a638160dc Update Content Organization to match the world
47eb431ca Correct one link in templates/output-formats.md
8bf933629 Spell fix
ce2d48728 Add docs for .AllTranslations
de94b4942 Move sponsor data to theme data
41fe75254 Merge commit '
f463ef99ed2862e4042557e28aece7ca858e1d0a'
f463ef99e Squashed 'themes/gohugoioTheme/' changes from
bc851da9..
75da2f6b
532c65f2a Move sponsor logo to theme
899e2defe Add sponsor logos to home page and footer
3ca53db97 Release 0.31.1
bb9876ce2 Merge branch 'temp0311'
c7c3ee7e5 releaser: Prepare repository for 0.32-DEV
4ac554792 releaser: Add release notes to /docs for release of 0.31.1
52bfb5c15 releaser: Bump versions for release of 0.31.1
cfdc2e4ea Fix output formats example
5746c10c2 More on output format
de2ee0fe0 Improve suffix redefinition example
c9997839e Update gitlab CI submodule management
82d74e306 Add Bootstrap styling to breadcrumb example
c8c9601a8 Use the code shortcode for the breadcrumb example
16be43e7d Clean up formatting in variable definition lists
149c2c157 Add nested section docs
783c3d636 Sync theme
60a220bbd Squashed 'themes/gohugoioTheme/' changes from
6b632895..
bc851da9
4b33a04d0 Fix typo
94cffc43c Fix little typo
a5d4f762f Fix typo
36c5a0b43 Add a note about the 2 in staticDir2
087bd9a9f Add KeyCDN to menu
4ac8aae38 Hugo 0.31 Released
8fdd995e7 releaser: Prepare repository for 0.32-DEV
eb0f38fbb releaser: Add release notes to /docs for release of 0.31
60efdfff7 releaser: Bump versions for release of 0.31
44dafb10b Merge commit '
30c0d485eaff6d70df1be0353911ddca485d52bf'
e6b847b95 Merge commit '
05e42bc643f1840ed2ad9c2eff82a269d1381683'
15d86a525 Handle Taxonomy permalinks
5c3c18d7f Add support for height argument to figure shortcode
git-subtree-dir: docs
git-subtree-split:
fc61378a3227c14883a2942d67c806014e7bb6cb
Bjørn Erik Pedersen [Fri, 29 Dec 2017 09:16:50 +0000 (10:16 +0100)]
hugolib: Add test for homepage content for all rendering engines
Update #4166
Bjørn Erik Pedersen [Fri, 29 Dec 2017 08:52:43 +0000 (09:52 +0100)]
tpl/transform: Do not unescape input to highlight
Fixes #4179
Bjørn Erik Pedersen [Fri, 29 Dec 2017 08:37:37 +0000 (09:37 +0100)]
commands: Make sure all language homes are always re-rendered in fast render mode
Fixes #4125
Bjørn Erik Pedersen [Fri, 29 Dec 2017 07:58:38 +0000 (08:58 +0100)]
hugolib: Do not tolower result from Page.GetParam
We still do lowering of the param strings in some internal use of this, but the exported `GetParam` method is changed to a more sensible default.
This was used for the `disqus_title` etc. in the internal Disqus template, which was obviously not right.
If you really want to lowercase your params, do it with `.GetParam "myparam" | lower` or similar.
Fixes #4187
Bjørn Erik Pedersen [Thu, 28 Dec 2017 21:56:48 +0000 (22:56 +0100)]
resource: Avoid potential case issue in image names
Bjørn Erik Pedersen [Thu, 28 Dec 2017 21:52:27 +0000 (22:52 +0100)]
helpers: Avoid writing the last MD5 buff part twice
Bjørn Erik Pedersen [Wed, 27 Dec 2017 18:31:42 +0000 (19:31 +0100)]
resource: Use MD5 to identify image files
But only a set of byte chunks spread around in the image file to calculate the fingerprint, which is much faster than reading the whole file:
```bash
BenchmarkMD5FromFileFast/full=false-4 300000 4356 ns/op 240 B/op 5 allocs/op
BenchmarkMD5FromFileFast/full=true-4 30000 42899 ns/op 32944 B/op 5 allocs/op
```
Fixes #4186
Bjørn Erik Pedersen [Thu, 28 Dec 2017 12:54:23 +0000 (13:54 +0100)]
source: Fix test on Windows
Bjørn Erik Pedersen [Thu, 28 Dec 2017 10:32:02 +0000 (11:32 +0100)]
source: Make sure .File.Dir() ends with a slash
Updates #4190
Bjørn Erik Pedersen [Mon, 24 Jul 2017 07:00:23 +0000 (09:00 +0200)]
:sparkles: Implement Page bundling and image handling
This commit is not the smallest in Hugo's history.
Some hightlights include:
* Page bundles (for complete articles, keeping images and content together etc.).
* Bundled images can be processed in as many versions/sizes as you need with the three methods `Resize`, `Fill` and `Fit`.
* Processed images are cached inside `resources/_gen/images` (default) in your project.
* Symbolic links (both files and dirs) are now allowed anywhere inside /content
* A new table based build summary
* The "Total in nn ms" now reports the total including the handling of the files inside /static. So if it now reports more than you're used to, it is just **more real** and probably faster than before (see below).
A site building benchmark run compared to `v0.31.1` shows that this should be slightly faster and use less memory:
```bash
▶ ./benchSite.sh "TOML,num_langs=.*,num_root_sections=5,num_pages=(500|1000),tags_per_page=5,shortcodes,render"
benchmark old ns/op new ns/op delta
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4
101785785 78067944 -23.30%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4
185481057 149159919 -19.58%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4
103149918 85679409 -16.94%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4
203515478 169208775 -16.86%
benchmark old allocs new allocs delta
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4 532464 391539 -26.47%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4
1056549 772702 -26.87%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4 555974 406630 -26.86%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4
1086545 789922 -27.30%
benchmark old bytes new bytes delta
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4
53243246 43598155 -18.12%
BenchmarkSiteBuilding/TOML,num_langs=1,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4
105811617 86087116 -18.64%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=500,tags_per_page=5,shortcodes,render-4
54558852 44545097 -18.35%
BenchmarkSiteBuilding/TOML,num_langs=3,num_root_sections=5,num_pages=1000,tags_per_page=5,shortcodes,render-4
106903858 86978413 -18.64%
```
Fixes #3651
Closes #3158
Fixes #1014
Closes #2021
Fixes #1240
Updates #3757
Bjørn Erik Pedersen [Sun, 17 Dec 2017 17:06:55 +0000 (18:06 +0100)]
tpl/strings: Fix broken test
Victor Kropp [Fri, 13 Oct 2017 20:57:52 +0000 (22:57 +0200)]
Make chomp return the type it receives
fixes #2187
Bjørn Erik Pedersen [Sat, 16 Dec 2017 17:56:58 +0000 (18:56 +0100)]
Reuse the BlackFriday instance when possible
This is in heavy use in rendering, so this makes a difference:
```bash
benchmark old ns/op new ns/op delta
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,tags_per_page=5,shortcodes,render-4
124551144 107743429 -13.49%
benchmark old allocs new allocs delta
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,tags_per_page=5,shortcodes,render-4 528684 435118 -17.70%
benchmark old bytes new bytes delta
BenchmarkSiteBuilding/TOML,num_langs=1,num_pages=500,tags_per_page=5,shortcodes,render-4
53306848 45147832 -15.31%
```
Ivan Vyshnevskyi [Sat, 16 Dec 2017 15:41:52 +0000 (17:41 +0200)]
livereload: Fix host comparison when ports aren't present
Compare the original hosts from 'Origin' and 'Host' headers before
attempting to do a port-less comparison. This helps in the case when
hugo server was started with a '--port=80' so both headers do not
contain a port.
Fixes #4141
Richard Metzler [Fri, 15 Dec 2017 17:49:21 +0000 (18:49 +0100)]
Add .Title and .Page to MenuEntry
It uses `title` if configured on the menu entry. If not, it uses the `Page.Title` when possible.
Fixes #2784
Bjørn Erik Pedersen [Thu, 7 Dec 2017 20:46:46 +0000 (21:46 +0100)]
Remove the goroutines from the shortcode lexer
It was clever, but storing the items in a slice is faster -- and it gives room to more goroutines in other places.
```bash
benchmark old ns/op new ns/op delta
BenchmarkShortcodeLexer-4 180173 79614 -55.81%
benchmark old allocs new allocs delta
BenchmarkShortcodeLexer-4 309 328 +6.15%
benchmark old bytes new bytes delta
BenchmarkShortcodeLexer-4 35456 47008 +32.58%
```
Bjørn Erik Pedersen [Thu, 7 Dec 2017 21:38:54 +0000 (22:38 +0100)]
mage: Do not run Go Fmt check on Go tip
Bjørn Erik Pedersen [Wed, 6 Dec 2017 13:03:04 +0000 (14:03 +0100)]
Adjust the stale setup
Bjørn Erik Pedersen [Wed, 6 Dec 2017 09:03:25 +0000 (10:03 +0100)]
Add Github stale bot config
Bjørn Erik Pedersen [Tue, 5 Dec 2017 15:17:11 +0000 (16:17 +0100)]
Use StopTimer in site benchmarks
Bjørn Erik Pedersen [Sat, 2 Dec 2017 11:05:12 +0000 (12:05 +0100)]
Add output formats definition to benchmarks
Bjørn Erik Pedersen [Sat, 2 Dec 2017 10:44:18 +0000 (11:44 +0100)]
Improve site benchmarks
Christian Nolte [Fri, 1 Dec 2017 10:17:46 +0000 (11:17 +0100)]
Fix context of opengraph video range
Fixes #4136