Bjørn Erik Pedersen
63311a14d2
releaser: Add release notes draft for release of 0.22
2017-06-12 08:39:30 +02:00
David Turnbull
fd872c5d16
docs: Rewrite “Archetypes” article
2017-06-12 08:03:08 +02:00
David Turnbull
0f8f51414d
docs: Rewrite “Archetypes” article
2017-06-12 08:03:08 +02:00
Ryan Watters
8744e6d0c5
Add noindex to alias explanation
...
Closes rdwatters/hugo-docs-concept#131
See PR gohugoio/hugo#3521
2017-06-11 14:32:08 -05:00
Matthieu Bresson
085da1deb7
docs: change .Site to $.Site where the global context is masked by the term's context
2017-06-11 18:52:26 +02:00
Matthieu Bresson
39408925fd
docs: change .Site to $.Site where the global context is masked by the term's context
2017-06-11 18:52:26 +02:00
Ryan Watters
208d164640
Add additional reference to layout front matter
2017-06-10 16:34:09 -05:00
Ryan Watters
e47b74d8d0
Add information about layout front matter variable
...
Also add outputs to front matter documentation.
Closes rdwatters/hugo-docs-concept#130
Closes gohugoio/hugo#3558
2017-06-10 16:25:57 -05:00
Torbjörn Lönnemark
29df19624c
docs: Use single link element for RSS in example
...
The rel attribute supports specifying a set of values, not only a single
one.
Using two link elements can also cause browsers to show the feed twice
in menus.
2017-06-09 13:12:09 +02:00
Torbjörn Lönnemark
00d632153a
docs: Use single link element for RSS in example
...
The rel attribute supports specifying a set of values, not only a single
one.
Using two link elements can also cause browsers to show the feed twice
in menus.
2017-06-09 13:12:09 +02:00
Bjørn Erik Pedersen
f1da5a15a3
hugolib: Make the RSS feed use the date for the node it represents
...
Closes #2708
2017-06-09 01:10:16 +02:00
Alexandros
d5ab7f087d
Add noindex tag to HTML generated by Hugo Aliases
...
So that Googlebot can stop keeping the old URLs in the SERPs.
2017-06-08 23:12:39 +02:00
Bjørn Erik Pedersen
55dd533bf7
hugolib: Unexport some internal methods
2017-06-08 22:33:18 +02:00
Cameron Moore
b82cd82f11
tpl/collections: Add uint support to In
2017-06-08 21:01:15 +02:00
Cameron Moore
204c3a9e32
tpl/collections: Support interfaces in union
...
Fixes #3411
2017-06-08 21:01:15 +02:00
Bjørn Erik Pedersen
fe901b8119
hugolib, commands: Improve live-reload on directory structure changes
...
This issue is more visible now that we support nested sections.
This commit makes operations like pasting new content folders or deleting content folders during server watch just work.
Fixes #3570
2017-06-08 20:14:28 +02:00
Bjørn Erik Pedersen
b39689393c
hugolib: Enable nested sections
...
Fixes #465
2017-06-08 11:21:34 +02:00
Bjørn Erik Pedersen
bef5048580
Revert "hugolib: Fix live-reload regression for add/removal of dirs"
...
Never mind. The "adding dir" scenario didn't work anyway, so that will need another fix.
This reverts commit 49a104309d53af243b32443a59bdc2a6fc9beeef.
Closes ##3325
2017-06-07 22:31:57 +02:00
Bjørn Erik Pedersen
49a104309d
hugolib: Fix live-reload regression for add/removal of dirs
...
This reverts commit b5b6e81c0269abf9b0f4bc6a127744a25344e5c6.
That change breaks watching of new directories (new dirs, deleted dirs).
Reopens #3325
Fixes #3569
2017-06-07 22:11:15 +02:00
Bjørn Erik Pedersen
5be0448635
hugolib: Fix disablePathToLower regression
...
Fixes #3374
2017-06-06 09:15:42 +02:00
Bjørn Erik Pedersen
1f55cb767d
hugolib: Simplify some test loops
2017-06-06 08:43:33 +02:00
Bjørn Erik Pedersen
8aaec644a9
hugolib: Add test for no 404 in sitemap
...
Closes #3563
2017-06-06 08:09:25 +02:00
Peter Cossey
539c2ef2de
docs: Add thislittleduck.com to the showcase
2017-06-05 13:53:08 +02:00
Peter Cossey
55c53ae9be
docs: Add thislittleduck.com to the showcase
2017-06-05 13:53:08 +02:00
Ryan Watters
44e6279dfb
Move archetypes from Bud's theme to project dir
2017-06-04 16:58:47 -05:00
Ryan Watters
d05edb0fe0
Move all shortcodes out of theme and into project dir
2017-06-04 16:55:36 -05:00
Ryan Watters
5ba5089776
Add more tweets
2017-06-04 11:41:30 -05:00
Ryan Watters
9ccb82fa42
Add functions file for uniq
2017-06-03 13:00:56 -05:00
Nathan Sharfi
041b6c9145
tpl: Add uniq function
2017-06-03 19:13:58 +02:00
Nathan Sharfi
e28d9aa42c
tpl: Add uniq function
2017-06-03 19:13:58 +02:00
Ryan Watters
92bb618cf2
Add new tweets through June 3
2017-06-03 12:11:48 -05:00
digitalcraftsman
9412e0b01a
Remove Duoshuo from list of commenting services
...
The linked website was shut down.
See PR rdwatters/hugo-docs-concept#128
2017-06-03 12:05:59 -05:00
Bjørn Erik Pedersen
46b4607828
hugolib: Remove some superflous TODO comments
2017-06-03 17:32:47 +02:00
Bjørn Erik Pedersen
2c2ce33a39
parser: Add horizontal YAML tags to benchmark
2017-06-03 12:35:28 +02:00
jeremielondon
c2a52c1cf8
docs: Add Nutspubcrawl.com to the showcase
2017-06-03 12:16:11 +02:00
jeremielondon
adc0572d29
docs: Add Nutspubcrawl.com to the showcase
2017-06-03 12:16:11 +02:00
Bjørn Erik Pedersen
0907a5c1c2
all: Temporarily revert to BurntSushi for TOML front matter handling
...
We still have go-toml as a transitive dependency, and it is the way to go eventually, but we care about speed, so let us wait that one out.
Note that the issue this fixes is about taxonomies, but I guess this is a general issue for sites with many pages that uses TOML as front matter.
```
benchmark old ns/op new ns/op delta
BenchmarkFrontmatterTags/TOML:1-4 23206 8543 -63.19%
BenchmarkFrontmatterTags/TOML:11-4 80117 18495 -76.92%
BenchmarkFrontmatterTags/TOML:21-4 140676 28727 -79.58%
benchmark old allocs new allocs delta
BenchmarkFrontmatterTags/TOML:1-4 173 60 -65.32%
BenchmarkFrontmatterTags/TOML:11-4 625 138 -77.92%
BenchmarkFrontmatterTags/TOML:21-4 1106 210 -81.01%
benchmark old bytes new bytes delta
BenchmarkFrontmatterTags/TOML:1-4 9231 2912 -68.45%
BenchmarkFrontmatterTags/TOML:11-4 19808 5184 -73.83%
BenchmarkFrontmatterTags/TOML:21-4 31200 7536 -75.85%
```
See #3541
Updates #3464
2017-06-03 09:22:57 +02:00
Bjørn Erik Pedersen
3d9c4f513b
parser: Add BenchmarkFrontmatterTags
...
The list handling is surprisingly expensive:
```
▶ go test -run="NONE" -bench="BenchmarkFrontmatterTags" -test.benchmem=true ./parser | prettybench
PASS
benchmark iter time/iter bytes alloc allocs
--------- ---- --------- ----------- ------
BenchmarkFrontmatterTags/JSON:1-4 1000000 2039.00 ns/op 912 B/op 20 allocs/op
BenchmarkFrontmatterTags/JSON:11-4 300000 5202.00 ns/op 1640 B/op 44 allocs/op
BenchmarkFrontmatterTags/JSON:21-4 200000 7993.00 ns/op 2392 B/op 65 allocs/op
BenchmarkFrontmatterTags/YAML:1-4 200000 9359.00 ns/op 5928 B/op 66 allocs/op
BenchmarkFrontmatterTags/YAML:11-4 100000 21218.00 ns/op 8408 B/op 140 allocs/op
BenchmarkFrontmatterTags/YAML:21-4 50000 32852.00 ns/op 10920 B/op 211 allocs/op
BenchmarkFrontmatterTags/TOML:1-4 100000 21505.00 ns/op 9231 B/op 173 allocs/op
BenchmarkFrontmatterTags/TOML:11-4 20000 82919.00 ns/op 19808 B/op 625 allocs/op
BenchmarkFrontmatterTags/TOML:21-4 10000 141847.00 ns/op 31200 B/op 1106 allocs/op
ok github.com/spf13/hugo/parser 17.890s
```
See #3464
2017-06-03 08:53:56 +02:00
Bjørn Erik Pedersen
250ebc1db5
hugolib: Add some more tags to benchmark
2017-06-02 18:40:10 +02:00
Bjørn Erik Pedersen
b37d959408
hugolib: Bump leaktest timeout to 30 seconds
...
To try to make it less flaky.
2017-06-02 16:50:44 +02:00
Bjørn Erik Pedersen
4e00bb7fdd
Write CPU and mem profiles from site benchmark script
2017-06-02 09:38:09 +02:00
Bjørn Erik Pedersen
fdcfccedcb
hugolib: Fix tag calculation in benchmark test
2017-06-02 09:13:45 +02:00
Ryan Watters
4d0b6653ee
Fix typo on Hawksworth's tweet for homepage
2017-06-01 22:42:38 -05:00
Ryan Watters
bdacc320d8
Move tweet data file to project dir from theme
...
Also update the data file with May 2017 tweets.
2017-06-01 17:47:55 -05:00
Ryan Watters
c940f08f84
Remove duplicate custom output pages
2017-06-01 17:27:41 -05:00
Ryan Watters
59c1bdc5a3
Move custom outputs from CM to templates section
2017-06-01 16:49:14 -05:00
Ryan Watters
0e363fe7b9
Remove theme-showcase.md => removing from global nav as well
2017-06-01 13:54:56 -05:00
Bjørn Erik Pedersen
213ea74929
hugolib: Add number of tags as a benchmark know
2017-06-01 18:51:51 +02:00
Bjørn Erik Pedersen
08a10e5d14
hubolib: Make the site benchmark output more compact
...
So you can do and get:
```
▶ ./benchSite.sh "YAML,num_pages=10"
Running with BenchmarkSiteBuilding/YAML,num_pages=10
BenchmarkSiteBuilding/YAML,num_pages=10-4 1000 1611261 ns/op 730749 B/op 6458 allocs/op
PASS
ok github.com/spf13/hugo/hugolib 8.168s
```
2017-06-01 12:00:47 +02:00
Anthony Fok
d83c53a8a6
Replace "Github" with "GitHub"
...
See PR rdwatters/hugo-docs-concept#126
2017-05-31 13:16:01 -05:00