aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/config.yml
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2021-02-24 13:48:14 +0200
committerMantas Vilčinskas <hi@mnts.lt>2021-02-24 13:48:14 +0200
commit925027e85b74a77e06448be5baa6053f1222fb78 (patch)
treeb5dc98f1a5828764ec653cd37dc4b70585faf47d /exampleSite/config.yml
parent867f6a5dc8118d0d6f903eea75484c59e296d37e (diff)
Doc updates, bugfixes, add rel time to NCMS
Diffstat (limited to 'exampleSite/config.yml')
-rw-r--r--exampleSite/config.yml35
1 files changed, 31 insertions, 4 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index 49faaee..7dc5972 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -161,17 +161,44 @@ params:
#
# dateFormat Default: "January 2, 2006 at 3:04 PM"
# shortDateFormat Default: "15:04 — Jan 2"
- dateFormat: January 2, 2006 at 3:04 PM
- shortDateFormat: 15:04 — Jan 2
+ dateFormat: January 2, 2006 at 3:04 PM UTC
+ shortDateFormat: 15:04 UTC — Jan 2
- # If enabled, will display relative times for incident history and summaries instead of using dateFormat.
+ # Should relative time (x min ago) be used?
+ #
+ # IMPORTANT: In the frontmatter, the dates MUST be in
+ # the UTC time zone for this to work preperly. If you
+ # use Netlify CMS, all good — the CMS picks UTC time
+ # by default. Otherwise, there may be very inaccurate
+ # times if multiple time zones are in your issue files.
+ #
+ # FOR YOUR CONSIDERATION: This feature was introduced in
+ # v5. It may be a breaking change in the case when you
+ # wish to use relative time but old issues do not have
+ # UTC time (and therefore are out of sync by ±24 hours)
+ #
+ # Read the wiki for more:
+ # https://github.com/cstate/cstate/wiki/Customization#time
+ #
+ # If enabled, will display relative times in places like
+ # the incident history and summaries instead of using
+ # dateFormat and shortDateFormat (except for if you use
+ # the old shortcode).
#
# Default: `true`
+ # BOOLEAN; `true`, `false`
useRelativeTime: true
-
+
# If enabled, doesn't show seconds on relative times.
#
+ # With option ON (true):
+ # "Last checked <1 min ago"
+ #
+ # With option OFF (false; default):
+ # "Last checked 20s ago"
+ #
# Default: `false`
+ # BOOLEAN; `true`, `false`
skipSeconds: false
# What header design should we use?