From a5e43b6bb87c9b04f610927f89f3ee3f8fa9e349 Mon Sep 17 00:00:00 2001 From: Derek Severin Date: Thu, 13 Sep 2018 17:03:20 +0700 Subject: Pro content updated & project's period fixed --- layouts/partials/pages/title.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/pages/title.html b/layouts/partials/pages/title.html index dca9e84..699bb86 100644 --- a/layouts/partials/pages/title.html +++ b/layouts/partials/pages/title.html @@ -19,7 +19,7 @@ {{ $months := int (sub $months (mul $years 12)) }} to {{ dateFormat .Site.Params.projects.date_format .Params.endDate }} - ({{ if gt $years 0 }}{{ $years }} years, {{ end }}{{ $months }} months) + ({{ if gt $years 0 }}{{ $years }} year{{ if gt $years 1 }}s{{ end }}{{ end }}{{ if and (gt $years 0) (gt $months 0) }}, {{ end }}{{ if gt $months 0 }}{{ $months }} month{{ if gt $months 1 }}s{{ end }}{{ end }}) {{ end }} {{ end }} -- cgit v1.2.3