hugo/hugolib
Anton Staaf 99fbc75e7a hugolib: Fix regression of .Truncated evaluation in manual summaries
This fixes the behavior of .Truncated that was introduced with commit
bef496b97e which was later broken.  The
desired behavior is that .Truncated would evaluate to false when there
was nothing after the user defined summary marker.

This also adds a simple unit test to ensure that this feature isn't
broken again.  The check for content after the user defined summary
marker is done on the raw content instead of the working copy because
some of the markup renderers add elements after the marker, making it
difficult to determine if there is actually any content.

The behavior (evaluating to false when there is no content, just
summary) is also now documented.
2017-02-19 10:11:49 +01:00
..
testdata
alias_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
author.go
case_insensitive_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
config.go hugolib: Make RSS item limit configurable 2017-02-17 19:53:08 +01:00
config_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
datafiles_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
disableKinds_test.go hugolib: Add missing page kind to allKinds 2017-02-19 09:15:30 +01:00
embedded_shortcodes_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
gitinfo.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
handler_base.go
handler_file.go
handler_meta.go
handler_page.go hugolib: Fix regression of .Truncated evaluation in manual summaries 2017-02-19 10:11:49 +01:00
handler_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
hugo_info.go
hugo_sites.go hugolib: Add disableKinds option 2017-02-18 22:53:23 +01:00
hugo_sites_build.go hugolib: Add disableKinds option 2017-02-18 22:53:23 +01:00
hugo_sites_build_test.go hugolib: Add disableKinds option 2017-02-18 22:53:23 +01:00
media.go
menu.go
menu_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
multilingual.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
node_as_page_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
page.go hugolib: Fix regression of .Truncated evaluation in manual summaries 2017-02-19 10:11:49 +01:00
page_collections.go
page_permalink_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
page_taxonomy_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
page_test.go hugolib: Fix regression of .Truncated evaluation in manual summaries 2017-02-19 10:11:49 +01:00
page_time_integration_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pageCache.go
pageCache_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pageGroup.go
pageGroup_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pageSort.go hugolib: Enhance .Param to permit arbitrarily nested parameter references 2017-02-19 08:50:08 +01:00
pageSort_test.go hugolib: Enhance .Param to permit arbitrarily nested parameter references 2017-02-19 08:50:08 +01:00
pagesPrevNext.go
pagesPrevNext_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pagination.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pagination_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
path_separators_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
permalinks.go
permalinks_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
robotstxt_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
rss_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
scratch.go
scratch_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
shortcode.go tpl: Refactor package 2017-02-17 17:15:26 +01:00
shortcode_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
shortcodeparser.go
shortcodeparser_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
site.go hugolib: Add disableKinds option 2017-02-18 22:53:23 +01:00
site_render.go hugolib: Add disableKinds option 2017-02-18 22:53:23 +01:00
site_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
site_url_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
siteJSONEncode_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
sitemap.go
sitemap_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
taxonomy.go
taxonomy_test.go hugolib: Fix issue with taxonomies when only some have content page 2017-02-18 08:37:11 +01:00
template_engines_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
template_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
testhelpers_test.go hugolib: More test helper cleanup 2017-02-18 07:53:25 +01:00
translations.go