hugo/helpers
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
..
content.go helpers: Test coverage increase 2016-02-06 14:27:11 +01:00
content_renderer.go Some missing shortcode replacements 2016-03-01 13:51:46 +01:00
content_renderer_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
content_test.go helpers: Test coverage increase 2016-02-06 14:27:11 +01:00
emoji.go Add emoji support 2016-03-11 15:51:37 -06:00
emoji_test.go Add emoji support 2016-03-11 15:51:37 -06:00
general.go Make the watch logger less chatty 2016-01-28 15:33:41 +01:00
general_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
hugo.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
hugo_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
path.go Add support for Go 1.6 block keyword in templates 2016-03-10 10:53:54 +01:00
path_test.go Fixes #1292 2016-01-01 14:35:58 -05:00
pygments.go added remaining relevant options 2016-01-04 11:52:40 -05:00
pygments_test.go Apply gofmt -s 2016-02-06 13:09:52 +01:00
url.go Make absURL properly handle baseURL with path component 2016-03-10 11:08:50 +01:00
url_test.go Make absURL properly handle baseURL with path component 2016-03-10 11:08:50 +01:00