number_format
현재 사이트 언어(site.lang) 기준에 맞추어 숫자에 천 단위 구분 기호(쉼표)를 자동으로 적용하는 숫자 서식 필터입니다.
문법
{{ number | number_format }}예시
{% assign price = 1250000 %}{{ price | number_format }}원결과
1,250,000원number_format 필터는 전달된 숫자 데이터를 현재 사이트 설정 언어(site.lang)의 국가별 통화 및 수치 표기 규격에 맞추어 세 자리마다 쉼표를 찍어주는 Landmix 전용 서식 필터입니다. 한국어 환경(ko)에서는 1250000과 같은 숫자 입력값을 천 단위 구분 쉼표가 들어간 '1,250,000' 형식으로 깔끔하게 변환하여 사용자에게 제공합니다.
키워드 조합 페이지에서는 가격, 이용 요금, 가입자 수 등 수치형 속성을 텍스트 본문이나 가격표에 배치할 때 필수적으로 활용됩니다. 예를 들어 키워드 행의 견적 속성에 {{ row.price | number_format }}원과 같이 적용하면 스프레드시트의 원시 숫자 데이터를 누락이나 오표기 없이 가독성 높은 가격 안내 문구로 손쉽게 렌더링할 수 있습니다.
필터
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
