diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/admin/config.yml | 123 | ||||
-rw-r--r-- | static/admin/index.html | 2 |
2 files changed, 85 insertions, 40 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml index 9ce91d9..3de63dc 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -128,8 +128,10 @@ collections: - { label: "🇩🇪 Deutsch", value: "de" } - { label: "🇳🇱 Dutch", value: "nl" } - { label: "🇫🇷 French", value: "fr" } + - { label: "🇮🇹 Italiano", value: "it" } - { label: "🇧🇷 Portuguese", value: "pt"} - { label: "🇲🇰 Македонски", value: "mk" } + - { label: "🏳️ Tagalog", value: "tl" } - label: 'Site language in code for html[lang]' hint: 'Use the ISO 639-1 defined abbreviations. Examples: en, lt, de. Fully explained here: https://github.com/cstate/cstate/wiki/Customization#changing-site-language' name: 'languageCode' @@ -138,7 +140,7 @@ collections: - label: 'Base URL / Hostname' name: 'baseURL' widget: 'string' - hint: 'Where is the site hosted? What is the hostname or path to the root? Slash forces relative links but may not work in all setups.' + hint: 'Where is the site hosted? Hostname (and path) to the root. Prior to version 3, a slash was used which now works in local testing, but breaks certain features of cState like RSS feeds, so a correct example for production is: https://cstate.mnts.lt' default: '/' # PARAMS - label: "Params" @@ -175,19 +177,37 @@ collections: - {label: "Name", name: "name", widget: string} - {label: "Link", name: "link", widget: string} # Dates + - label: 'Show last modified date at bottom of issues' + name: 'enableLastMod' + widget: 'boolean' + hint: 'Experimental feature shows when changes occured based on Git info. Read the wiki for more: https://github.com/cstate/cstate/wiki/Customization#time' + required: false + default: false + - 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: '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. Docs: 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. 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.' name: 'headerTextColor' widget: 'select' default: 'white' @@ -289,36 +309,61 @@ collections: name: 'enableCustomHTML' widget: 'boolean' default: 'false' - # REQUIRED BUT HIDDEN - - label: 'theme' - name: 'theme' - widget: 'hidden' - default: 'cstate' - - label: 'preserveTaxonomyNames' - name: 'preserveTaxonomyNames' - widget: 'hidden' - default: 'true' - - label: "taxonomies" - name: taxonomies - widget: "hidden" - fields: - - {label: "affected", name: "affected", widget: "hidden", default: "affected"} - - label: "outputs (Do not touch!)" - name: outputs - widget: "hidden" - fields: - - label: "page" - name: page - widget: "list" - allow_add: false - default: ['html', 'json'] - - label: "section" - name: section - widget: "list" - allow_add: false - default: ['html', 'json', 'rss'] - - label: "home" - name: home - widget: "list" - allow_add: false - default: ['html', 'json', 'rss'] + # REQUIRED BUT HIDDEN + - label: 'theme' + name: 'theme' + widget: 'hidden' + default: 'cstate' + - label: 'preserveTaxonomyNames' + name: 'preserveTaxonomyNames' + widget: 'hidden' + default: 'true' + - label: "taxonomies" + name: taxonomies + widget: "hidden" + fields: + - {label: "affected", name: "affected", widget: "hidden", default: "affected"} + - label: "Outputs (Do not touch!)" + name: outputs + widget: "hidden" + fields: + - label: "page" + name: page + widget: "list" + allow_add: false + default: ['html', 'json'] + - label: "section" + name: section + widget: "list" + allow_add: false + default: ['html', 'json', 'rss'] + - label: "home" + name: home + widget: "list" + allow_add: false + default: ['html', 'json', 'rss', 'svg'] + - label: "term" + name: term + widget: "list" + allow_add: false + default: ['html', 'json', 'rss'] + - label: "Output formats (Do not touch!)" + name: outputFormats + widget: "hidden" + fields: + - label: "svg" + name: svg + fields: + - label: "isPlainText" + name: isPlainText + widget: "boolean" + default: true + - label: "mediaType" + name: mediaType + default: "image/svg+xml" + - label: 'Enable Git info' + name: 'enableGitInfo' + widget: 'hidden' + hint: 'Docs: https://github.com/cstate/cstate/wiki/Customization#time' + required: false + default: true
\ No newline at end of file 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> |