hugo/docs
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
..
archetypes [Docs] Copyediting 2015-01-28 18:02:40 -07:00
content tpl: Add truncate template function 2017-01-06 10:42:32 +01:00
data docs: Add one more quote 2016-04-08 00:06:39 +02:00
layouts docs: Vanity-update of site meta description 2017-01-05 01:40:00 +01:00
static docs: Add heimatverein-niederjosbach.de to the showcase 2017-01-02 15:51:05 +01:00
.gitignore Add ToC to long pages 2015-05-11 18:39:42 +02:00
config.toml docs: Don't use binary version in docs site 2017-01-02 14:08:36 +01:00