hugo/commands
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
..
benchmark.go Export MainSite var 2016-02-14 13:50:03 +01:00
check.go Clean flags 2016-02-05 21:18:45 +01:00
convert.go Unexport the remaining vars in hugo command 2016-02-05 22:58:17 +01:00
gen.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
genautocomplete.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
gendoc.go update to use cobra's sub package doc 2015-12-24 10:31:44 -05:00
genman.go update to use cobra's sub package doc 2015-12-24 10:31:44 -05:00
hugo.go Add emoji support 2016-03-11 15:51:37 -06:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
import_jekyll.go Do not fail on unknown Jekyll file 2015-12-14 15:30:58 +01:00
import_jekyll_test.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
limit_darwin.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
limit_others.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
list.go Unexport the remaining vars in hugo command 2016-02-05 22:58:17 +01:00
list_config.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
new.go Unexport the remaining vars in hugo command 2016-02-05 22:58:17 +01:00
new_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
server.go Add json mime extension type 2016-03-06 14:10:06 +01:00
server_test.go Unexport the remaining vars in hugo command 2016-02-05 22:58:17 +01:00
undraft.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
undraft_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
version.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00