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:
authorDerek Severin <severinderek@gmail.com>2018-09-13 13:03:20 +0300
committerDerek Severin <severinderek@gmail.com>2018-09-13 13:03:20 +0300
commita5e43b6bb87c9b04f610927f89f3ee3f8fa9e349 (patch)
tree216ca13ac837ef357a4f1ee33c7277d21ac48404 /layouts
parente77f34cefb2dbf7f77993a7a2ec2c59d54363b9b (diff)
Pro content updated & project's period fixed
Diffstat (limited to 'layouts')
-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 }}