hugo/hugolib
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
..
author.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
benchmark_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
datafiles_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
handler_base.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
handler_file.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
handler_meta.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
handler_page.go Add emoji support 2016-03-11 15:51:37 -06:00
handler_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
hugo.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
media.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
menu.go Add menu sort tests 2016-02-07 12:34:43 +01:00
menu_test.go Fix for page in multiple menus 2016-03-10 10:31:12 +01:00
node.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
node_test.go Add Node tests for simple methods 2016-02-07 13:18:16 +01:00
page.go Fix for page in multiple menus 2016-03-10 10:31:12 +01:00
page_permalink_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
page_taxonomy_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
page_test.go Add Page tests for simple methods 2016-02-07 13:32:08 +01:00
page_time_integration_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
pageCache.go Apply gofmt -s 2016-02-06 13:09:52 +01:00
pageCache_test.go Clean up the loop counter variables confusion in TestPageCache 2015-12-19 15:38:28 +01:00
pageGroup.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
pageGroup_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
pageSort.go Fix buggy Pages.Limit 2016-02-06 22:10:36 +01:00
pageSort_test.go Remove Printf in test 2016-02-06 22:19:58 +01:00
pagesPrevNext.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
pagesPrevNext_test.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
pagination.go Group vars in paginator 2016-01-08 22:55:19 +01:00
pagination_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
path_separators_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
path_separators_windows_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
permalinks.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
permalinks_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
planner.go Unexport the target handlers 2016-03-05 20:56:38 +01:00
redis.cn.md
robotstxt_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
rss_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
scratch.go Add list support in Scratch 2016-03-06 15:44:17 +01:00
scratch_test.go Add list support in Scratch 2016-03-06 15:44:17 +01:00
shortcode.go Add reference to parent shortcode 2016-03-09 11:06:40 +01:00
shortcode_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
shortcodeparser.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
shortcodeparser_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
site.go Use default sitemap configuration for homepage 2016-03-10 11:02:00 +01:00
site_show_plan_test.go Unexport the target handlers 2016-03-05 20:56:38 +01:00
site_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
site_url_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
siteinfo_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
siteJSONEncode_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
sitemap.go Allow renaming of sitemap.xml 2016-01-04 12:28:49 -05:00
sitemap_test.go Create template clone for late template execution 2016-03-09 14:37:58 +01:00
summary.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
taxonomy.go Try both prepped and unprepped taxonomy keys 2016-03-03 22:01:09 +01:00
taxonomy_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00