mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
3a44bf182f
d88477eb3 Fix some more redirect alias loops 209735670 Update features.md d4ec6ef87 Remove redirect loop from functions/default ce14da435 Fix the AlternativeOutputFormats/OutputFormats examples f64a22469 Update cond.md 357a70a32 Remove redirect loop from templates/404 4ad7b01ba Remove some aliases that were causing infinite redirect loops fd378e66a Fix alias redirect loop ec3629f6f Revert "Set code background to white" ffc56b880 Revert "Make inline code gray" 2a964e261 Make inline code gray 44069e09c Set code background to white d39c790d0 Linked my own blog2md migration script 3e55267be Release 0.46 7b6cfdd8b releaser: Prepare repository for 0.47-DEV d4cb54806 releaser: Add release notes to /docs for release of 0.46 6518ac7e7 releaser: Bump versions for release of 0.46 e54334d5c Merge commit '766085c2dc6fc95ac30fda2a9ebde2355fc12554' git-subtree-dir: docs git-subtree-split: d88477eb3a1959e2764d6025f5aa7a57a4a611e7
735 B
735 B
title | description | godocref | date | publishdate | lastmod | categories | menu | keywords | signature | workson | hugoversion | relatedfuncs | deprecated | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
countrunes | Determines the number of runes in a string excluding any whitespace. | 2017-02-01 | 2017-02-01 | 2017-02-01 |
|
|
|
|
false |
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.
{{ "Hello, 世界" | countrunes }}
<!-- outputs a content length of 8 runes. -->