From 29b4440505b59de96b40fdfd349fcc7925a47381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 12 Jul 2015 11:05:37 +0200 Subject: [PATCH] Add RuneCount to Page Fixes #1266 --- content/templates/variables.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/templates/variables.md b/content/templates/variables.md index cfe010e36..ca30174e2 100644 --- a/content/templates/variables.md +++ b/content/templates/variables.md @@ -47,6 +47,7 @@ matter, content or derived from file location. **.NextInSection** Pointer to the following content within the same section (based on pub date)
**.FuzzyWordCount** The approximate number of words in the content.
**.WordCount** The number of words in the content.
+**.RuneCount** The number of [runes](http://blog.golang.org/strings) in the content, excluding any whitespace. This may be a good alternative to `.WordCount` for Japanese and other CJK languages where a word-split by spaces makes no sense. **.ReadingTime** The estimated time it takes to read the content in minutes.
**.Weight** Assigned weight (in the front matter) to this content, used in sorting.
**.RawContent** Raw Markdown content without the metadata header. Useful with [remarkjs.com](http://remarkjs.com)