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 docs: Regenerate commands doc 2016-12-20 09:39:25 +01:00
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 docs: Enable ToC for extras/shortcodes 2016-12-26 19:31:34 +01:00
meta docs: Fix typo in v0.18 release notes 2017-01-02 14:11:04 +01:00
overview docs: Fix typo in overview/source-directory.md 2017-01-02 15:58:48 +01:00
showcase docs: Add heimatverein-niederjosbach.de to the showcase 2017-01-02 15:51:05 +01:00
taxonomies docs: Add sections on node now being a page 2016-11-22 09:57:03 +01:00
templates tpl: Add truncate template function 2017-01-06 10:42:32 +01:00
themes docs: Update GitLab depleyment in /themes/installing.md 2016-12-28 14:01:09 +01:00
tools docs: Add HugoPhotoSwipe to the tools section 2016-12-31 12:39:58 +01:00
troubleshooting docs: Add lastmod to content files 2016-01-06 23:55:18 +01:00
tutorials docs: Add details about binary names for setup on Windows 2016-12-22 17:03:33 +01:00