Skip to content

Commit

Permalink
docs: add an explanatory note to commify.html
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Jun 9, 2024
1 parent 2013e28 commit 71cae10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions output/_includes/commify.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{%- comment -%}
This is a ludicrously complicated way of thousands separators to large numbers.

I couldn’t figure out a better way of doing it without requiring either Ruby or
Javascript.
{%- endcomment -%}

{%- assign number_string = include.number | split: '' -%}
{%- assign total_digits = number_string.size -%}
{%- assign commify_number = '' -%}
Expand Down

0 comments on commit 71cae10

Please sign in to comment.