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
ace.md
amber.md
blocks.md docs: Fix typo in templates/blocks 2016-12-22 17:05:48 +01:00
content.md
debugging.md
functions.md tpl: Add truncate template function 2017-01-06 10:42:32 +01:00
go-templates.md
homepage.md
list.md
overview.md
partials.md
rss.md
sitemap.md Update documentation and test for sitemap template 2017-01-03 17:11:22 +01:00
terms.md
variables.md docs, tpl: Fix documentation of UniqueID 2016-12-31 17:55:03 +01:00
views.md