hugo/docs/content
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
..
commands
community docs: Add new article about Netlify's PR site preview 2017-01-04 01:17:36 -07:00
content docs: Update references to _index.md 2017-01-04 17:20:01 +01:00
extras
meta
overview
showcase
taxonomies
templates tpl: Add truncate template function 2017-01-06 10:42:32 +01:00
themes
tools
troubleshooting
tutorials