Files
FixIt/layouts/_partials/function/is-cjk.html
T
Cell 5322a15ceb docs(layouts): add header comments to undocumented partials
Add `{{/* ... */}}` header comments to 25 partials that had no documentation,
enabling `pnpm gen:docs` to generate their reference docs. Also fix
base/head/index.html leading blank line that prevented parser matching.

Groups covered: base/, feed/, function/, home/, init/, plugin/, single/, store/, (root).
2026-07-23 12:56:40 +08:00

11 lines
301 B
HTML

{{- /*
Check if the current page language is CJK (Chinese, Japanese, or Korean).
@return {Boolean} True if the page language is CJK
*/ -}}
{{- $cjk := slice "zh-cn" "zh-tw" "ja" "ko" -}}
{{- $isCJK := (in $cjk .Page.Language.Name) | default .Page.Params.IsCJKLanguage -}}
{{- return $isCJK -}}