Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/pages/title.html')
-rw-r--r--layouts/partials/pages/title.html2
1 files changed, 1 insertions, 1 deletions
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 <i>{{ dateFormat .Site.Params.projects.date_format .Params.endDate }}</i>
- ({{ 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 }}
</h3>
{{ end }}