diff --git a/content/post/hugo-stock-summary-shortcode.md b/content/post/hugo-stock-summary-shortcode.md index 94a8718..e2a241e 100644 --- a/content/post/hugo-stock-summary-shortcode.md +++ b/content/post/hugo-stock-summary-shortcode.md @@ -82,9 +82,9 @@ Create a file called stocks.html and place the following html in it. Save the fi {{ range index .Site.Data $filename }} {{.name}} - {{lang.NumFmt 2 .value}} - {{lang.NumFmt 2 .change}} - {{lang.NumFmt 2 .percentage}} + {{lang.FormatNumberCustom 2 .value}} + {{lang.FormatNumberCustom 2 .change}} + {{lang.FormatNumberCustom 2 .percentage}} {{end}} diff --git a/layouts/shortcodes/stocks.html b/layouts/shortcodes/stocks.html index 2bfe2ec..59894cf 100644 --- a/layouts/shortcodes/stocks.html +++ b/layouts/shortcodes/stocks.html @@ -13,9 +13,9 @@

Market Summary

{{ range index .Site.Data $filename }} {{.name}} - {{lang.NumFmt 2 .value}} - {{lang.NumFmt 2 .change}} - {{lang.NumFmt 2 .percentage}} + {{lang.FormatNumberCustom 2 .value}} + {{lang.FormatNumberCustom 2 .change}} + {{lang.FormatNumberCustom 2 .percentage}} {{end}} diff --git a/public/index.xml b/public/index.xml index 7f52e21..84f3d3b 100644 --- a/public/index.xml +++ b/public/index.xml @@ -1121,9 +1121,9 @@ {{ range index .Site.Data $filename }} <tr> <td>{{.name}}</td> - <td>{{lang.NumFmt 2 .value}}</td> - <td>{{lang.NumFmt 2 .change}}</td> - <td>{{lang.NumFmt 2 .percentage}}</td> + <td>{{lang.FormatNumberCustom 2 .value}}</td> + <td>{{lang.FormatNumberCustom 2 .change}}</td> + <td>{{lang.FormatNumberCustom 2 .percentage}}</td> </tr> {{end}} </tbody> diff --git a/public/post/hugo-stock-summary-shortcode/index.html b/public/post/hugo-stock-summary-shortcode/index.html index db69964..e065056 100644 --- a/public/post/hugo-stock-summary-shortcode/index.html +++ b/public/post/hugo-stock-summary-shortcode/index.html @@ -196,9 +196,9 @@
shortcode
{{ range index .Site.Data $filename }} <tr> <td>{{.name}}</td> - <td>{{lang.NumFmt 2 .value}}</td> - <td>{{lang.NumFmt 2 .change}}</td> - <td>{{lang.NumFmt 2 .percentage}}</td> + <td>{{lang.FormatNumberCustom 2 .value}}</td> + <td>{{lang.FormatNumberCustom 2 .change}}</td> + <td>{{lang.FormatNumberCustom 2 .percentage}}</td> </tr> {{end}} </tbody>