github.com/shohhei1126/hugo@v0.42.2-0.20180623210752-3d5928889ad7/docs/content/en/functions/countrunes.md (about)

     1  ---
     2  title: countrunes
     3  description: Determines the number of runes in a string excluding any whitespace.
     4  godocref:
     5  date: 2017-02-01
     6  publishdate: 2017-02-01
     7  lastmod: 2017-02-01
     8  categories: [functions]
     9  menu:
    10    docs:
    11      parent: "functions"
    12  keywords: [counting, word count]
    13  signature: ["countrunes INPUT"]
    14  workson: []
    15  hugoversion:
    16  relatedfuncs: []
    17  deprecated: false
    18  aliases: [/functions/countrunes/]
    19  ---
    20  
    21  In contrast with `countwords` function, which counts every word in a string, the `countrunes` function determines the number of runes in the content and excludes any whitespace. This has specific utility if you are dealing with CJK-like languages.
    22  
    23  ```
    24  {{ "Hello, 世界" | countrunes }}
    25  <!-- outputs a content length of 8 runes. -->
    26  ```
    27  
    28  [pagevars]: /variables/page/