aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/js.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/js.html')
-rw-r--r--layouts/partials/js.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index c4c5a85..8465483 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -67,7 +67,11 @@
if (interval > 1) {
return interval + ' {{ T "minsAgo" }}';
}
- return Math.floor(seconds) + '{{ T "secondsAgo" }}';
+ {{ if .Site.Params.skipSeconds }}
+ return '<1 {{ T "minsAgo" }}'
+ {{ else }}
+ return Math.floor(seconds) + '{{ T "secondsAgo" }}';
+ {{ end }}
}
/**