Remove education count when there is only one item

This commit is contained in:
Arnaud Ysmal 2020-08-08 21:52:36 +02:00
parent 2608089feb
commit 5ecfc4681a
2 changed files with 4 additions and 4 deletions

View File

@ -285,7 +285,7 @@
{{if .Education -}}
<section class="section">
<header>
<h2 class='section-title'>{{.Lang.Education}} <span class="item-count">({{len .Education}})</span></h2>
<h2 class='section-title'>{{.Lang.Education}}{{if gt (len .Education) 1 -}}<span class="item-count">({{len .Education}})</span>{{- end}}</h2>
</header>
<section id="education">

File diff suppressed because one or more lines are too long