vmems-website/layouts/shortcodes/fullmod.html

2 lines
99 B
HTML

{{ $c := mod (.Get 0) (.Get 1) }}
{{ if lt $c 0 }}{{ add (.Get 1) $c }}{{ else }}{{ $c }}{{ end }}