diff options
Diffstat (limited to 'static/admin')
-rw-r--r-- | static/admin/config.yml | 22 | ||||
-rw-r--r-- | static/admin/index.html | 2 |
2 files changed, 18 insertions, 6 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml index 4fb01ae..582fe2f 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -110,6 +110,18 @@ collections: hint: 'What is your status page called? Shows up in the browser bar and meta.' name: 'title' widget: 'string' + - label: 'Use relative time (issue began x min ago)' + name: 'useRelativeTime' + widget: 'boolean' + hint: 'IMPORTANT: In the frontmatter, the dates MUST be in the UTC time zone. If you use Netlify CMS, the CMS picks UTC time by default, so no need to worry. However, there may be very inaccurate times, if you manually define non-UTC time in your issues. Read the wiki for more: https://github.com/cstate/cstate/wiki/Customization#time' + required: false + default: true + - label: 'Skip seconds in relative time calculations?' + name: 'skipSeconds' + widget: 'boolean' + hint: 'For users of relative time. With option ON (true): "Last checked <1 min ago". With option OFF (false; default): "Last checked 20s ago". Read the wiki for more: https://github.com/cstate/cstate/wiki/Customization#skip-seconds-v50' + required: false + default: false - label: 'Build future posts' name: 'buildFuture' widget: 'boolean' @@ -180,16 +192,16 @@ collections: - label: 'Long date format' name: 'dateFormat' widget: 'string' - hint: 'Default: January 2, 2006 at 3:04 PM. Hugo formatting docs: https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference' - default: 'January 2, 2006 at 3:04 PM' + hint: 'Default: January 2, 2006 at 3:04 PM UTC. Ddocs: https://github.com/cstate/cstate/wiki/Customization#changing-date-formats-v30' + default: 'January 2, 2006 at 3:04 PM UTC' - label: 'Short date format' name: 'shortDateFormat' widget: 'string' - hint: 'Default: 15:04 — Jan 2. Hugo formatting docs: https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference' - default: '15:04 — Jan 2' + hint: 'Default: 15:04 UTC — Jan 2. Hugo formatting docs: https://github.com/cstate/cstate/wiki/Customization#changing-date-formats-v30' + default: '15:04 UTC — Jan 2' # Design site title color toggle in v4.0.1 - label: 'Site title text color' - hint: 'This is irrelevant, if you use a logo in your header. Docs: https://github.com/cstate/cstate/wiki/Customization#site-title-text-color-v401' + hint: 'This is irrelevant, if you use a logo in your header. Docs: https://github.com/cstate/cstate/wiki/Customization#changing-date-formats-v30' name: 'headerTextColor' widget: 'select' default: 'white' diff --git a/static/admin/index.html b/static/admin/index.html index 3071a98..00bc051 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -14,7 +14,7 @@ /admin/ directory. --> - <script>console.log('You are using cState. The version can be looked at from the console on the homepage or incidents view.+ https://github.com/cstate')</script> + <script>console.log('You are using cState. The version can be looked at from the console on the homepage or incidents view. https://github.com/cstate')</script> <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> <script> |