Bjørn Erik Pedersen
542e220cc4
Make tests green on both Pygments 2.0.2 and 2.1.3
...
See #1969
2016-03-13 22:06:51 +01:00
Bjørn Erik Pedersen
cafb784799
Add emoji support
...
This uses the Emoji map from https://github.com/kyokomi/emoji -- but with a custom replacement implementation.
The built-in are fine for most use cases, but in Hugo we do care about pure speed.
The benchmarks below are skewed in Hugo's direction as the source and result is a byte slice,
Kyokomi's implementation works best with strings.
Curious: The easy-to-use `strings.Replacer` is also plenty fast.
```
BenchmarkEmojiKyokomiFprint-4 20000 86038 ns/op 33960 B/op 117 allocs/op
BenchmarkEmojiKyokomiSprint-4 20000 83252 ns/op 38232 B/op 122 allocs/op
BenchmarkEmojiStringsReplacer-4 100000 21092 ns/op 17248 B/op 25 allocs/op
BenchmarkHugoEmoji-4 500000 5728 ns/op 624 B/op 13 allocs/op
```
Fixes #1891
2016-03-11 15:51:37 -06:00
Ján Koščo
be3519fac0
Use default sitemap configuration for homepage
...
Fixes #1304
2016-03-10 11:02:00 +01:00
Bjørn Erik Pedersen
924028a9be
Fix for page in multiple menus
...
Fixes #1934
2016-03-10 10:31:12 +01:00
Bjørn Erik Pedersen
973393c99e
Create template clone for late template execution
...
Fixing some breaking blogs on Go 1.6
Fixes #1879
2016-03-09 14:37:58 +01:00
Bjørn Erik Pedersen
9896cd0030
Add reference to parent shortcode
...
Fixes #1936
2016-03-09 11:06:40 +01:00
Bjørn Erik Pedersen
c7acc318b5
Add some missing resets on rebuild
...
Fixes #1928
Fixes #1929
2016-03-06 16:33:32 +01:00
Bjørn Erik Pedersen
eaba04e82b
Add list support in Scratch
2016-03-06 15:44:17 +01:00
Bjørn Erik Pedersen
4e32dc80a2
Simplify the IsHome test cases
2016-03-06 00:41:11 +01:00
Bjørn Erik Pedersen
023992abad
Unexport the target handlers
...
These are of no interest outside the package.
2016-03-05 20:56:38 +01:00
Bjørn Erik Pedersen
27f8d8f963
Allow URL with extension in frontmatter
...
Fixes #1923
2016-03-05 20:50:53 +01:00
Bjørn Erik Pedersen
8aa90f2b7e
Try both prepped and unprepped taxonomy keys
...
Fixes #1869
2016-03-03 22:01:09 +01:00
Bjørn Erik Pedersen
ccd2f4c32b
Prevent capitalized taxonomy labels
...
Fixes #1880
2016-03-03 21:54:23 +01:00
Bjørn Erik Pedersen
7f682d7802
Fix shortcode handling in RST
...
Fixes #1904
2016-03-01 11:04:25 +01:00
Bjørn Erik Pedersen
6b922750f3
Revert "Create template clone for late template execution"
...
This reverts commit 93b04e67f6
.
2016-02-28 12:15:33 +01:00
Bjørn Erik Pedersen
93b04e67f6
Create template clone for late template execution
...
Fixing some breaking blogs on Go 1.6
Fixes #1879
2016-02-28 11:51:51 +01:00
Bjørn Erik Pedersen
804603155f
Check for the presence of pages before setting dates
...
See #1903
2016-02-27 23:25:41 +01:00
Bjørn Erik Pedersen
75cf324322
Set Date and Lastmod for main home page
...
Fixes #1903
2016-02-27 23:21:07 +01:00
Bjørn Erik Pedersen
455df10752
Optimize replaceShortcodeTokens
...
We can of course skip reading the entire byte slice again and again.
This was a slip in the original implementation; functionally the same,
but is slightly faster, esp. for larger data sets with many shortcodes:
```
benchmark old ns/op new ns/op delta
BenchmarkReplaceShortcodeTokens-4 15505 14753 -4.85%
benchmark old allocs new allocs delta
BenchmarkReplaceShortcodeTokens-4 1 1 +0.00%
benchmark old bytes new bytes delta
BenchmarkReplaceShortcodeTokens-4 3072 3072 +0.00%
```
2016-02-25 23:50:43 +01:00
Bjørn Erik Pedersen
8375995378
Enlarge data in BenchmarkReplaceShortcodeTokens
2016-02-25 21:45:13 +01:00
Tatsushi Demachi
e9853642e5
Listen channel before sending values to it
...
The 'results' channel is not listend before sending error values in a
loop checking IsRenderable or not. This fixes it.
2016-02-20 14:03:06 +09:00
Bjørn Erik Pedersen
50182cd06b
Remove superfluous Errorf
2016-02-16 02:05:59 +01:00
Derek Perkins
bac1ba4655
Fix spelling and go vet errors
2016-02-13 19:08:48 +08:00
Tatsushi Demachi
2b3b90a6df
Add test for Hugo hanging up with empty content
...
This adds a test for the issue #1797 and its fix in 68e2e63
.
2016-02-08 20:55:19 +09:00
Bjørn Erik Pedersen
05c8bccf84
hugolib: Add test for parseSitemap
2016-02-07 15:56:56 +01:00
Bjørn Erik Pedersen
0f6c8439b9
Add missing menu tests
2016-02-07 13:43:42 +01:00
Bjørn Erik Pedersen
c462440dcd
Add Page tests for simple methods
2016-02-07 13:32:08 +01:00
Bjørn Erik Pedersen
66570d2fb3
Add Node tests for simple methods
2016-02-07 13:18:16 +01:00
Bjørn Erik Pedersen
75044c199f
Add menu sort tests
2016-02-07 12:34:43 +01:00
Bjørn Erik Pedersen
7c3dceeaed
Fix buggy Menu.Limit()
2016-02-06 22:53:59 +01:00
Bjørn Erik Pedersen
a95426d40c
Remove Printf in test
2016-02-06 22:19:58 +01:00
Bjørn Erik Pedersen
88a320fb2d
Fix buggy Pages.Limit
...
Also add missing page sort related tests.
2016-02-06 22:10:36 +01:00
Bjørn Erik Pedersen
318a984526
Apply gofmt -s
2016-02-06 13:09:52 +01:00
Tatsushi Demachi
68e2e63d92
Fix Hugo hang up with empty content directory
...
Site.ReadPagesFromSource returns nil chan error value when a site
content directory is empty but its receiver expects to be passed
something error values via the channel.
This fixes it by returning a channel which will be immediately closed.
Fix #1797
2016-02-03 08:19:02 +09:00
Anthony Fok
57eebbf243
Use FEEDBACK instead of ERROR for empty home page warning
...
jww.ERROR.Println() seems to have become too verbose,
making the warning message intended for new users
a lot less readable.
2016-01-30 17:39:17 +08:00
Bjørn Erik Pedersen
5def6d9aee
Make the watch logger less chatty
2016-01-28 15:33:41 +01:00
Steve Francia
d08e4c87a7
Rewrite commentary on static event handling
2016-01-26 14:56:42 -05:00
Steve Francia
9413cf8499
Handle self rename operations gracefully
2016-01-26 14:33:08 -05:00
Steve Francia
7e196a8294
Handle remove & rename source operations incrementally
2016-01-26 14:30:28 -05:00
Steve Francia
e01c340915
A single file can be replaced in site.Files
2016-01-26 14:29:37 -05:00
Steve Francia
45e5091428
Process only the source content that has changed
2016-01-26 14:28:53 -05:00
Steve Francia
9f3796a31d
Read/reread individual source content files
...
next is incremental conversion
2016-01-26 14:26:23 -05:00
Steve Francia
ca6ca4f4fc
Separate handling content, data and template changes
...
Data & Templates reading independently
Need to work on page source reading and other source files
2016-01-26 14:25:39 -05:00
Steve Francia
bcc42c0549
Separate reading source and processing source operations
2016-01-25 14:41:47 -05:00
Bjørn Erik Pedersen
3526afc773
Fix some Go vet errors
2016-01-16 00:28:48 +01:00
Bjørn Erik Pedersen
78f9bf2444
Add one more menu test
...
See #1774
2016-01-14 17:30:05 +01:00
Bjørn Erik Pedersen
ab70e6f52f
Add menu test for external URL
...
See #1774
2016-01-14 15:14:21 +01:00
Bjørn Erik Pedersen
1ce184b7f1
Add some p-wrap shortcode tests
...
Deliberetely made to pass, even if they (probably) should not.
See #1642
2016-01-09 16:11:38 +01:00
Bjørn Erik Pedersen
48870fef2e
Group vars in paginator
...
It's easier to read.
2016-01-08 22:55:19 +01:00
Ivan Fraixedes
9a6dc6c791
Add embeded template for robots.txt
2016-01-05 23:36:16 +01:00