hugo/hugolib
Bjørn Erik Pedersen bcd434794a Avoid splitting words for summary
For people using autogenerated summaries, this is one of the hot spots in the memory department.

We don't need to split al the content into words to do proper summary truncation.

This is obviously more effective:

```
BenchmarkTestTruncateWordsToWholeSentence-4            300000          4720 ns/op           0 B/op           0 allocs/op
BenchmarkTestTruncateWordsToWholeSentenceOld-4         100000         17699 ns/op        3072 B/op           3 allocs/op
```
2016-09-14 10:50:55 +02:00
..
author.go
benchmark_test.go
config.go Remove unused Multilingual Viper default 2016-09-06 18:32:19 +03:00
config_test.go Make taxonomies configurable per language 2016-09-06 18:32:17 +03:00
datafiles_test.go Add data tests 2016-09-06 18:32:20 +03:00
embedded_shortcodes_test.go Fix the shortcode ref tests 2016-09-06 18:32:18 +03:00
handler_base.go
handler_file.go
handler_meta.go Add parent as owner to Site 2016-09-06 18:32:18 +03:00
handler_page.go Fix multilingual reload when shortcode changes 2016-09-06 18:32:21 +03:00
handler_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
hugo_info.go Move HugoSites to hugolib 2016-09-06 18:32:16 +03:00
hugo_sites.go Reset the i18n func map on reload 2016-09-08 17:18:11 +03:00
hugo_sites_test.go Add Language.LanguageName 2016-09-12 20:59:03 +02:00
i18n.go Optimize the multilanguage build process 2016-09-06 18:32:16 +03:00
media.go
menu.go
menu_test.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
multilingual.go Add Language.LanguageName 2016-09-12 20:59:03 +02:00
node.go Add missing read lock in getNodes 2016-09-08 16:51:32 +03:00
node_test.go
page.go Avoid splitting words for summary 2016-09-14 10:50:55 +02:00
page_permalink_test.go Make it possible to configure Blackfroday per language 2016-09-06 18:32:17 +03:00
page_taxonomy_test.go
page_test.go Fix some corner cases in revised summary handling 2016-09-06 18:32:18 +03:00
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go hugolib: Fix typos in tests 2016-09-12 10:56:16 +02:00
pageSort.go Add Translations and AllTranslations methods to Page 2016-09-06 18:32:15 +03:00
pageSort_test.go Make it possible to configure Blackfroday per language 2016-09-06 18:32:17 +03:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go Add Translations and AllTranslations to Node 2016-09-06 18:32:16 +03:00
pagination_test.go Create a Node map to get proper node translations 2016-09-06 18:32:19 +03:00
path_separators_test.go
path_separators_windows_test.go
permalinks.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
permalinks_test.go
planner.go Add parent as owner to Site 2016-09-06 18:32:18 +03:00
redis.cn.md
robotstxt_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
rss_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
scratch.go
scratch_test.go
shortcode.go Fix shortcode vs pygments 2016-09-08 21:23:01 +02:00
shortcode_test.go Fix shortcode vs pygments 2016-09-08 21:23:01 +02:00
shortcodeparser.go
shortcodeparser_test.go
site.go Support site menu per language 2016-09-12 20:59:03 +02:00
site_show_plan_test.go Make the check command work in multilingual mode 2016-09-06 18:32:18 +03:00
site_test.go Render main content language in root by default 2016-09-06 18:32:18 +03:00
site_url_test.go Improve language handling in URLs 2016-09-06 18:32:18 +03:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go Render main content language in root by default 2016-09-06 18:32:18 +03:00
summary.go
taxonomy.go
taxonomy_test.go Make taxonomies configurable per language 2016-09-06 18:32:17 +03:00
translations.go Multilingual TODO-fixes, take 1 2016-09-06 18:32:18 +03:00