Bjørn Erik Pedersen
6178238a0b
output: Speed up layout calculations
...
```
BenchmarkLayout-4 4883 497 -89.82%
benchmark old allocs new allocs delta
BenchmarkLayout-4 18 1 -94.44%
benchmark old bytes new bytes delta
BenchmarkLayout-4 1624 32 -98.03%
```
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
df95383914
hugolib: Speed up URL handling
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
a49bf8707b
hugolib: Remove siteWriter
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
d76e5f36b4
hugolib: Pull all alias handling into one file
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
ad8cea87f3
Refactor layout resolve to a descriptor/adapter pattern
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
4c2abe0015
Rename OutputType to OutputFormat
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
6bf010fed4
hugolib: Refactor/-work the permalink/target path logic
...
This is a pretty fundamental change in Hugo, but absolutely needed if we should have any hope of getting "multiple outputs" done.
This commit's goal is to say:
* Every file target path is created by `createTargetPath`, i.e. one function for all.
* That function takes every page and site parameter into account, to avoid fragile string parsing to uglify etc. later on.
* The path creation logic has full test coverage.
* All permalinks, paginator URLs etc. are then built on top of that same logic.
Fixes #1252
Fixes #2110
Closes #2374
Fixes #1885
Fixes #3102
Fixes #3179
Fixes #1641
Fixes #1989
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
c8fff9501d
Implement the first generic JSON output testcase
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
3ec5fc3504
hugolib, output: Incorporate suffix and type in layout resolve
...
And remove some now superflous and hard to maintain tests.
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
f091fc23ed
hugolib: Add basic setup for output def per Kind
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
03122e51fa
hugolib: Revert to using Page as the render chan type
...
Changing it to PageOutput was a mistake. You may think that the increased parallelism should be a good thing.
But not so much with the increased lock contention and more complex concurrency model.
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
e5200ddaa4
hugolib: Remove the copying in the renderRSS
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
a8244658f7
hugolib: Put back taxonomy term paginator logic lost in rebase
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
50c64415aa
hugolib, output: Add theme logic to LayoutHandler
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
348834d017
hugolib: Add a PageOutput wrapper for rendering
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
254cd89c8e
hugolob: A first incorporation of output types in rendering
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
10de077164
hugolib: Use the new layout logic in Page
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
3bb52bf7bf
output: Move layout logic to the output package
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
d3d2c63dd9
output: Add output type
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
c4989c39f1
Add MediaType and a crude implementation
...
See #2828
2017-03-27 15:43:56 +02:00
Ryan Watters
047e039baf
Make docsearch config async and defer
2017-03-27 08:19:13 -05:00
Ryan Watters
0d5146a8b0
Tweak content
2017-03-27 08:14:33 -05:00
Bjørn Erik Pedersen
9262c5b32f
Exit -1 on ERROR in non-global logger
...
Fixes #3239
2017-03-27 10:55:29 +02:00
Ryan Watters
e0cfe258d8
Add first round of custom output content
2017-03-26 19:00:13 -05:00
Bjørn Erik Pedersen
2bea9d0ca1
Revert "tplimpl: return an error on unsupported type in isSet"
...
This breaks the theme site and lots of themes, so we will have to thinkg a little harder about this one.
This reverts commit 74ea81b885 .
2017-03-26 20:09:08 +02:00
Ryan Watters
850a08a44b
Move all files to theme
2017-03-25 17:25:57 -05:00
Bud Parr
0796957d1f
Fix paths to indicate theme path and leave a note about it
2017-03-25 18:13:41 -04:00
Darwin
1b92c8b713
Change RSS description from full .Content to .Summary
2017-03-25 22:58:41 +01:00
Bud Parr
50c24e070d
Move to theme folder
2017-03-25 17:49:34 -04:00
Ryan Watters
2ac2fa9349
Remove extraneous config key-values in config.toml (continued)
2017-03-25 14:53:43 -05:00
Ryan Watters
b14b65960c
Add Hugo SFTP Upload tool to dev tools
...
Closes rdwatters/hugo-docs-concept#50
2017-03-25 14:49:01 -05:00
Ryan Watters
1517384b9e
Remove more extraneous config.toml values
2017-03-25 14:45:43 -05:00
Ryan Watters
a479cb136b
Update all uses of readfile SC to use root path
2017-03-25 14:19:15 -05:00
Bjørn Erik Pedersen
17b21e0af1
hugolib: Correctly identify "my_index_page.md"
...
The above example was earlier identified as a section page and not a regular page.
Fixes #3234
2017-03-25 19:57:01 +01:00
Ryan Watters
025011295b
Update GH pages tutorial
2017-03-25 13:53:23 -05:00
Ryan Watters
55407e34b5
Merge pull request rdwatters/hugo-docs-concept#52 from digitalcraftsman/ga
...
Switch to Hugo's internal GA variable
2017-03-25 13:48:37 -05:00
Ryan Watters
a3f46c9d2d
Resolve config conflict for taxonomies
2017-03-25 13:50:08 -05:00
Ryan Watters
8cfea6b1b5
Update config GA
2017-03-25 13:47:52 -05:00
Ryan Watters
847d3d4f2e
Remove extraneous values from config.toml per convo with BP
2017-03-25 13:37:23 -05:00
Ryan Watters
043b4e495f
Fix Hosting on GitHub tutorial
2017-03-25 13:33:03 -05:00
digitalcraftsman
22351f4af3
Switch to Hugo's internal GA variable
2017-03-25 16:06:52 +01:00
Anthony Fok
7f68e3199e
snapcraft: Bump version to 0.20-DEV
2017-03-25 02:55:10 -06:00
Anthony Fok
2ed75f3462
snapcraft: Add vendoring support
...
Also, build with go1.8, run "make test", and strip the binary.
Fixes #3226
2017-03-25 02:54:30 -06:00
Ryan Watters
767ea0a081
Update to muli font across the board
2017-03-25 00:16:14 -05:00
Ryan Watters
32fc75342c
Mix font faces
2017-03-25 00:01:07 -05:00
Ryan Watters
56c614668c
Test out serif font on body copy
2017-03-24 23:37:38 -05:00
Ryan Watters
0381c06d90
Remove outdated warning about imageConfig not working
2017-03-24 19:25:50 -05:00
digitalcraftsman
f7604307c4
docs: Add Hugo SFTP Upload to the tools section
...
/cc @rdwatters
2017-03-24 23:31:31 +01:00
digitalcraftsman
9d9ec1ddd9
docs: Add Hugo SFTP Upload to the tools section
...
/cc @rdwatters
2017-03-24 23:31:31 +01:00
Albert Nigmatzianov
9f0b02b898
commands: Fix case of createpath in new.go
2017-03-24 22:19:03 +01:00