Bjørn Erik Pedersen
3c6b16d5a2
vendor: Update fsnotify with several Linux-fixes
2017-03-29 13:30:31 +02:00
Bjørn Erik Pedersen
87b3cd4655
hugolib, helpers: Reduce log level to WARN on .Render for non-regular pages
...
We will eventually support all types in the Render method.
2017-03-29 08:08:45 +02:00
Ryan Watters
8b06205a7c
Add "tip" shortcode and documentation
...
Closes rdwatters/hugo-docs-concept#59
2017-03-28 11:46:29 -05:00
Bjørn Erik Pedersen
5989c4d464
helpers, output: Fix spelling
2017-03-28 01:19:46 +02:00
Bjørn Erik Pedersen
af55ec7661
hugolib, output: Gofmt
2017-03-28 01:18:15 +02:00
Ryan Watters
70080e3d01
Merge pull request rdwatters/hugo-docs-concept#57 from moorereason/iss31
...
Add function signatures
2017-03-27 17:28:11 -05:00
Bjørn Erik Pedersen
f2fbf0b2ea
media: Add some more relevant MIME types
2017-03-28 00:09:25 +02:00
Cameron Moore
da71775958
Add function signatures
...
Fixes rdwatters/hugo-docs-concept#31
2017-03-27 16:32:31 -05:00
Ryan Watters
3d6d55d6c3
Remove concept documentation for time being
2017-03-27 15:46:07 -05:00
Ryan Watters
c698a77dff
Fix breaking yaml in delimit function
2017-03-27 14:41:17 -05:00
Ryan Watters
d688bd98bd
Add alias for old MathJax tutorial
2017-03-27 14:36:22 -05:00
Ryan Watters
7a1f9a6a03
Update signature fields
2017-03-27 14:33:35 -05:00
Ryan Watters
dbbbd49887
Add MathJax to supported formats
...
Closes rdwatters/hugo-docs-concept#38
2017-03-27 13:32:57 -05:00
Ryan Watters
1989c17e03
Add old MathJax content to content formats page
2017-03-27 13:32:22 -05:00
Ryan Watters
0819a04480
Add intro text to hosting and deployment
2017-03-27 12:34:31 -05:00
Ryan Watters
8366049ad9
Add intro text to hosting and deployment
2017-03-27 12:32:24 -05:00
Ryan Watters
f514681d1e
Remove all tutorial-related content from install guide
2017-03-27 11:39:43 -05:00
Ryan Watters
db09419df8
Update readme todos and clarifying readFile w themes
2017-03-27 11:03:09 -05:00
Ryan Watters
0a6bc38640
Fix broken link in list page templates
2017-03-27 10:10:49 -05:00
Ryan Watters
9c652071fd
Fix broken link in list page templates
2017-03-27 10:09:23 -05:00
Ryan Watters
109a6a592d
Move list and homepage content to list templates page
...
Closes rdwatters/hugo-docs-concept#49
2017-03-27 10:02:28 -05:00
Ryan Watters
e6511dff2b
Remove findRE TOC example
...
Closes rdwatters/hugo-docs-concept#47
Fixes gohugoio/hugo#3188
2017-03-27 09:50:53 -05:00
Bjørn Erik Pedersen
0b9bd50206
docs: Move the rough custom output formats spec to docs
...
This isn't meant to be the final useer docs on this feature!
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
4923273688
tplimpl: Fix lookup with non-standard layout folder
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
930a3df1b7
hugolib, output: Restrict Render to regular Pages
...
Using it for list pages doesn't work and has potential weird side-effects.
The user probably meant to range over .Site.ReqularPages, and that is now marked clearly in the log.
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
e49a2b83ad
hugolib: Fix Render layouts for list pages
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
9a0aa5fdbe
hugolib: Wrap pageOutput create in sync.Once
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
0aaf3c56a5
hugolib: Fix panic for Permalink in 404 etc. templates
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
ee4a33b14f
commands: Fix broken commandeer
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
09c88e84d1
output: Rename HTMLType etc. to HTMLFormat
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
24c1770288
hugolib: Revise paginator alias path handling
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
b7ed67d425
hugolib: More TODO fixes
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
3cd97951f1
hugolib, layout: Consolidate RSS template handling
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
ee75e2999b
Remove the now superflous defaultExtension
...
And some other unsed fields and methods.
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
15b64d51da
all: Propagate baseURL error to the callers
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
148fedd227
hugolib, tplimpl: Use OutputFormats to create atom links
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
ec01c3a7f0
hugolib: Add 404 test
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
5761b93c96
hugolib, output: Fix RSSLink vs output formats
...
And remove the now superflous setPageURLs method.
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
87188496fb
hugolib, output: Handle aliases for all HTML formats
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
0c4701f0ef
hugolib: Update site stats to take output formats into account
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
d851d6b98f
Add custom protocol support in Permalink
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
8bcc08e3b0
media, output: Add Calendar type
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
dbb83f925a
hugolib: Read default output formats from site config
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
4aaed87dd9
hugolib, media: Make the MediaType available to the templates
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
c7dbee2321
hugolib, output: Add Rel to the output format
...
To make it super-easy to create rel-links.
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
29d3778ba1
docs: Move the rough custom output formats spec to docs
...
This isn't meant to be the final useer docs on this feature!
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
1b2be5e878
hugolib: Add OutputFormats with permalinks to Page
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
baa29f6534
output: Rework the base template logic
...
Extract the logic to a testable function and add support for custom output types.
Fixes #2995
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
c7c6b47ba8
hubolib: Pick layout per output format
2017-03-27 15:43:56 +02:00
Bjørn Erik Pedersen
08fa2b1124
hugolib: Fix layout lookup order for Render func
...
Will have to fix this in a better way later in relation to the non-renderable pages.
But this commit brings the Hugo Benchmark down to "only slightly slower" than master.
```
benchmark old ns/op new ns/op delta
BenchmarkHugo-4 10074504521 10071236251 -0.03%
benchmark old allocs new allocs delta
BenchmarkHugo-4 43623091 49271859 +12.95%
benchmark old bytes new bytes delta
BenchmarkHugo-4 9468322704 9725848376 +2.72%
```
Which is something we can work with.
2017-03-27 15:43:56 +02:00