Use uniq before sort

master
Will Faught 2 years ago
parent e7b40e6cb9
commit d777c637ba

@ -72,7 +72,7 @@
{{ end }} {{ end }}
{{ $flags = delimit ($flags | uniq) " " }} {{ $flags = delimit ($flags | uniq) " " }}
{{ $sectionclass = delimit (split $sectionclass " " | append $flags | sort | uniq) " " }} {{ $sectionclass = delimit (split $sectionclass " " | append $flags | uniq | sort) " " }}
<section {{ with $sectionclass }} class="{{ . }}" {{ end }}> <section {{ with $sectionclass }} class="{{ . }}" {{ end }}>
{{ with $title }} {{ with $title }}

Loading…
Cancel
Save