aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-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 }}
}
/**