hugo/docs/content/templates
Mathias Biilmann 2989c38245 tpl: Add truncate template function
This commit adds a truncate template function for safely truncating text without
breaking words. The truncate function is HTML aware, so if the input text is a
template.HTML it will be truncated without leaving broken or unclosed HTML tags.

    {{ "this is a very long text" | truncate 10 " ..." }}
    {{ "With [Markdown](/markdown) inside." | markdownify | truncate 10 }}
2017-01-06 10:42:32 +01:00
..
404.md docs: Revise docs to reflect that Node is gone 2016-11-22 09:57:03 +01:00
ace.md docs: Improve documentation for block templates 2016-12-15 22:02:21 +01:00
amber.md docs: Add lastmod to content files 2016-01-06 23:55:18 +01:00
blocks.md docs: Fix typo in templates/blocks 2016-12-22 17:05:48 +01:00
content.md docs: Clarify single page template search path 2016-12-15 19:34:25 +01:00
debugging.md docs: Revise docs to reflect that Node is gone 2016-11-22 09:57:03 +01:00
functions.md tpl: Add truncate template function 2017-01-06 10:42:32 +01:00
go-templates.md docs: Fix pipe examples 2016-12-15 19:33:40 +01:00
homepage.md docs: Add sections on node now being a page 2016-11-22 09:57:03 +01:00
list.md docs: Add sections on node now being a page 2016-11-22 09:57:03 +01:00
overview.md Implement support for alias templates 2016-10-15 15:25:05 +02:00
partials.md docs: Update layouts path name 2016-12-16 01:09:51 +01:00
rss.md docs: Revise docs to reflect that Node is gone 2016-11-22 09:57:03 +01:00
sitemap.md Update documentation and test for sitemap template 2017-01-03 17:11:22 +01:00
terms.md docs: Add sections on node now being a page 2016-11-22 09:57:03 +01:00
variables.md docs, tpl: Fix documentation of UniqueID 2016-12-31 17:55:03 +01:00
views.md docs: Document Go 1.6's new ability to trim whitespace 2016-04-09 13:21:23 +02:00