aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md2
-rw-r--r--Dockerfile2
-rw-r--r--README.md10
-rwxr-xr-xdocker/entrypoint.sh4
-rw-r--r--exampleSite/config.yml6
-rw-r--r--exampleSite/content/issues/2023-04-16-formatting-testing.md21
-rw-r--r--i18n/se.yaml157
-rw-r--r--i18n/uk.yaml157
-rw-r--r--layouts/index.json16
-rw-r--r--layouts/issues/issue.html11
-rw-r--r--layouts/issues/small.html7
-rw-r--r--layouts/partials/index/announcements.html4
-rw-r--r--layouts/partials/index/components.html26
-rw-r--r--layouts/partials/js.html2
-rw-r--r--layouts/partials/meta.html6
-rw-r--r--static/admin/config.yml6
16 files changed, 400 insertions, 37 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 9828a36..df17d06 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -15,7 +15,7 @@ Explain the **details** for making this change. What existing problem does the p
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
<!-- Run some tests to make sure the code doesn't throw any errors, is valid, and works on IE8+. -->
-<!-- Also, maake sure that the code formatting is in line with the rest of the project. -->
+<!-- Also, make sure that the code formatting is in line with the rest of the project. -->
**Closing issues**
diff --git a/Dockerfile b/Dockerfile
index 4583390..de5d0f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,5 +13,5 @@ COPY exampleSite /cstate
RUN mkdir -p /cstate/themes/cstate
COPY . /cstate/themes/cstate
-# Copy entrypoint script into the container image, this runs everytime the container cold-starts.
+# Copy entrypoint script into the container image, this runs every time the container cold-starts.
COPY ./docker/entrypoint.sh /docker-entrypoint.d/10-build-hugo.sh
diff --git a/README.md b/README.md
index 8a336a9..fc2db51 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ You can support the creator of this project by starring, sharing, using cState a
## Sponsors
-cState's development is being sposnored by [Instatus](https://instatus.com/) from June, 2022.
+[You can sponsor cState by sponsoring the main developer of the project, @mistermantas](https://github.com/sponsors/mistermantas).
## Examples 🥳
@@ -26,17 +26,13 @@ cState's development is being sposnored by [Instatus](https://instatus.com/) fro
* [**Example site — cstate.mnts.lt**](https://cstate.mnts.lt)
* [Source code of the example cState site](https://github.com/cstate/example)
-
+
### More examples from the internet
* [Chocolatey](https://status.chocolatey.org/)
-* [tmw.media](https://status.tmw.media)
-* [Proventa](https://status.proventa.io/) (German)
* [sr.ht](https://status.sr.ht/)
* [Content Ignite](https://status.contentignite.com/)
* [FSCI](https://status.fsci.in/)
-* [Hyrousek](https://status.hyrousek.tk)
-* [josh.win](https://status.josh.win)
*Want your status page here? [Create a PR](https://github.com/cstate/cstate/edit/dev/README.md)!*
@@ -175,7 +171,7 @@ hugo
And the folder `public` can now be hosted.
-As you can imagine, manual building is a little bit tedious but a great option to have available programatically.
+As you can imagine, manual building is a little bit tedious but a great option to have available programmatically.
### Docker
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index a90e37d..9ac6c2c 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -1,7 +1,7 @@
WORK_DIR="/app"
SRC_DIR="/cstate"
-echo "[CSTATE-DOCKER] Initalising container..."
+echo "[CSTATE-DOCKER] Initialising container..."
# Check if the working dir is empty, if it is we'll need to copy
# the files in from src directory (usually /cstate)
@@ -20,4 +20,4 @@ hugo
# Copy built files into NGINX directory
cp -r /$WORK_DIR/public/* /usr/share/nginx/html
-echo "[CSTATE-DOCKER] Initalisation complete." \ No newline at end of file
+echo "[CSTATE-DOCKER] Initialisation complete." \ No newline at end of file
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index a3401c0..4dd3795 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -76,7 +76,7 @@ languageCode: en
# For enableMissingTranslationPlaceholders—
# do not set it to true for languages other
# than English! When tested with Lithuanian,
-# it would add unnecesary placeholders to
+# it would add unnecessary placeholders to
# values that were intentionally empty.
defaultContentLanguage: en
@@ -133,7 +133,7 @@ params:
# and the user can expand by clicking on the category
# (Requires JavaScript.)
# - untitled boolean `untitled: true`
- # This would complerely hide the name of the category.
+ # This would completely hide the name of the category.
# This is useful, if you do not want to use categories
# because you need to set an 'Uncategorized' category.
# Or it can be used alongside other categories.
@@ -188,7 +188,7 @@ params:
# 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
+ # the UTC time zone for this to work properly. 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.
diff --git a/exampleSite/content/issues/2023-04-16-formatting-testing.md b/exampleSite/content/issues/2023-04-16-formatting-testing.md
new file mode 100644
index 0000000..7d23d8a
--- /dev/null
+++ b/exampleSite/content/issues/2023-04-16-formatting-testing.md
@@ -0,0 +1,21 @@
+---
+title: Formatting testing
+date: 2023-04-16T18:34:00Z
+section: issue
+informational: true
+---
+
+This page includes *some* markdown formatting, such as **bold**, *italics*, ***bold and italics***, and other things as follows:
+
+`This is just code, not much else. It shouldn't overflow outside the boundries, and it's not a code block either.`
+
+---
+
+```
+This is a code block. It's long, and text will overflow.
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+qwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiop
+fastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfastfast
+v a r i b l e s p a c i n g fillerfillerfillerfillerfillerfillerfillerfillerfillerfillerfill
+```
diff --git a/i18n/se.yaml b/i18n/se.yaml
new file mode 100644
index 0000000..a8156fa
--- /dev/null
+++ b/i18n/se.yaml
@@ -0,0 +1,157 @@
+# Swedish language file for cState
+# Version 4.4
+
+- id: languageCode
+ translation: se
+- id: languageName
+ translation: Swedish
+- id: languageNameShort
+ translation: SE
+
+##
+## INDEX.HTML
+##
+
+# Summary status message
+- id: isDown
+ translation: Upplever stora problem
+- id: isDisrupted
+ translation: Upplever störningar
+- id: isNotice
+ translation: Läs meddelandet
+- id: isOk
+ translation: Inga problem upptäcktes
+
+# No JS warning
+- id: noScriptingIntro
+ translation: Oj oj! Det verkar som att du har inaktiverat JavaScript. Vänligen
+- id: noScriptingLink
+ translation: aktivera skript
+- id: noScriptingOutro
+ translation: för att förbättra din upplevelse på denna webbplats.
+
+- id: thisIsDown
+ translation: Nere
+- id: thisIsDisrupted
+ translation: Störning
+- id: thisIsNotice
+ translation: Underhåll
+- id: thisIsOk
+ translation: Operativ
+
+# "Last checked" + "just now"
+- id: lastChecked
+ translation: Senast uppdaterad
+- id: justNow
+ translation: precis nu
+- id: someTimeAgo
+ translation: sedan
+
+# Example usage: `5` + `years`
+# Final result: 'Last checked 5 years ago'
+# Number goes before string
+# Use short variants until months
+- id: yearsAgo
+ translation: år
+- id: monthsAgo
+ translation: månader
+- id: daysAgo
+ translation: d
+- id: hoursAgo
+ translation: h
+- id: minsAgo
+ translation: min
+- id: secondsAgo
+ translation: s
+
+- id: autoRefreshNotice
+ translation: Vi försöker uppdatera uppgifterna var 5:e minut.
+
+# Incidents
+- id: incidents
+ translation: Incidenter
+- id: incidentHistory
+ translation: Incident historik
+
+- id: resolved
+ translation: Löst # if it's less than a min
+- id: inUnderAMinute
+ translation: på under en minut # continuing the last string
+- id: resolvedAfter
+ translation: Löst efter # + 19 min
+- id: ofDowntime
+ translation: av driftstopp
+
+- id: downtimeOngoing
+ translation: Det här problemet är inte löst än
+
+- id: calmBeforeTheStorm
+ translation: Är det lugnet före stormen?
+- id: noIncidentsDesc
+ translation: Den här statussidan har inga loggade incidenter. Detta kan bero på att statussidans ägare (eller ägare) nyligen har ställt in sin statussida, inte har haft någon driftstopp eller inte har loggat någon driftstopp.
+
+- id: continueReading
+ translation: Fortsätt läsa
+- id: prev
+ translation: Föregående
+- id: next
+ translation: Nästa
+
+##
+## OTHER
+##
+
+- id: goBack
+ translation: Gå tillbaka till
+- id: backToTop
+ translation: Tillbaka till toppen
+- id: poweredBy
+ translation: Powered by
+
+- id: notFound
+ translation: Det finns ingenting här.
+- id: notFoundText
+ translation: Detta kan vara ett problem från vår sida. Kanske har vi flyttat en viss resurs och nu är den borta. Det är också möjligt att resursen du försöker visa är tom. Men har du också något emot att dubbelkolla länken?
+
+- id: rss
+ translation: Prenumerera via RSS
+- id: toAllUpdates
+ translation: till alla uppdateringar
+- id: or
+ translation: eller
+- id: onlyThisFeed
+ translation: bara detta flöde
+
+##
+## v3
+##
+- id: entries
+ translation: poster
+- id: newestToOldest
+ translation: nyaste till äldsta
+
+##
+## v4
+##
+- id: notFoundAffected
+ translation: Det ser ut som att det här systemet antingen inte existerar eller aldrig har haft någon inspelad driftstopp.
+
+##
+## v4.1
+##
+
+- id: averageSystemsDowntime
+ translation: Nyligen, baserat på genomsnittliga data, ser det ut som att detta system har gått ner i ungefär
+- id: averageSystemsDowntimeSecondPart
+ translation: minuter åt gången.
+
+##
+## v4.4
+##
+
+- id: in
+ translation: i
+- id: weeksAgo
+ translation: " v"
+- id: yearAgo
+ translation: " år"
diff --git a/i18n/uk.yaml b/i18n/uk.yaml
new file mode 100644
index 0000000..a9c7978
--- /dev/null
+++ b/i18n/uk.yaml
@@ -0,0 +1,157 @@
+# Ukrainian language file for cState
+# Version 4.4
+
+- id: languageCode
+ translation: uk
+- id: languageName
+ translation: Ukrainian
+- id: languageNameShort
+ translation: UKR
+
+##
+## INDEX.HTML
+##
+
+# Summary status message
+- id: isDown
+ translation: Має серйозні проблеми
+- id: isDisrupted
+ translation: Виникають збої
+- id: isNotice
+ translation: Будь ласка, прочитайте оголошення
+- id: isOk
+ translation: Проблем не виявлено
+
+# No JS warning
+- id: noScriptingIntro
+ translation: Ой-ой! Схоже, ви вимкнули JavaScript. Будь ласка
+- id: noScriptingLink
+ translation: увімкнути сценарії
+- id: noScriptingOutro
+ translation: щоб покращити ваш досвід роботи на цьому веб-сайті.
+
+- id: thisIsDown
+ translation: Впав
+- id: thisIsDisrupted
+ translation: Порушено
+- id: thisIsNotice
+ translation: Технічне обслуговування
+- id: thisIsOk
+ translation: Працює
+
+# "Last checked" + "just now"
+- id: lastChecked
+ translation: Останнє оновлення
+- id: justNow
+ translation: щойно
+- id: someTimeAgo
+ translation: назад
+
+# Example usage: `5` + `years`
+# Final result: 'Last checked 5 years ago'
+# Number goes before string
+# Use short variants until months
+- id: yearsAgo
+ translation: р.
+- id: monthsAgo
+ translation: міс.
+- id: daysAgo
+ translation: д.
+- id: hoursAgo
+ translation: год.
+- id: minsAgo
+ translation: хв.
+- id: secondsAgo
+ translation: с.
+
+- id: autoRefreshNotice
+ translation: Ми намагатимемося оновлювати кожні 5 хвилин
+
+# Incidents
+- id: incidents
+ translation: Інциденти
+- id: incidentHistory
+ translation: Історія інциденту
+
+- id: resolved
+ translation: Вирішено # if it's less than a min
+- id: inUnderAMinute
+ translation: менш ніж за хвилину # continuing the last string
+- id: resolvedAfter
+ translation: Вирішено через # + 19 min
+- id: ofDowntime
+ translation: простою
+
+- id: downtimeOngoing
+ translation: Ця проблема ще не вирішена
+
+- id: calmBeforeTheStorm
+ translation: Це затишшя перед бурею?
+- id: noIncidentsDesc
+ translation: На цій сторінці статусу немає зареєстрованих інцидентів. Це може бути тому, що власник (або власники) сторінки статусу нещодавно налаштували свою сторінку статусу та у них не зареєстровано жодного простою.
+
+- id: continueReading
+ translation: Продовжити читання
+- id: prev
+ translation: Попередній
+- id: next
+ translation: Далі
+
+##
+## OTHER
+##
+
+- id: goBack
+ translation: Повернутися до
+- id: backToTop
+ translation: Догори
+- id: poweredBy
+ translation: На основі
+
+- id: notFound
+ translation: Тут нічого немає.
+- id: notFoundText
+ translation: Це може бути проблемою з нашого боку. Можливо, ми перемістили певний ресурс і тепер його немає. Також можливо, що ресурс, який ви намагаєтеся переглянути, порожній. Але ви також не проти ще раз перевірити посилання?
+
+- id: rss
+ translation: Підпишіться через RSS
+- id: toAllUpdates
+ translation: на всі оновлення
+- id: or
+ translation: або
+- id: onlyThisFeed
+ translation: тільки на ці
+
+##
+## v3
+##
+- id: entries
+ translation: записи
+- id: newestToOldest
+ translation: від найновішого до найстарішого
+
+##
+## v4
+##
+- id: notFoundAffected
+ translation: Схоже, що цієї системи або не існує, або ніколи не було зафіксовано простоїв.
+
+##
+## v4.1
+##
+
+- id: averageSystemsDowntime
+ translation: Виходячи з середніх даних, виявляється, що ця система не працювала приблизно
+- id: averageSystemsDowntimeSecondPart
+ translation: хв.
+
+##
+## v4.4
+##
+
+- id: in
+ translation: in # Not changed - https://github.com/cstate/cstate/issues/289
+- id: weeksAgo
+ translation: ' тиж.'
+- id: yearAgo
+ translation: ' р.'
diff --git a/layouts/index.json b/layouts/index.json
index e2e7b7f..0067dc3 100644
--- a/layouts/index.json
+++ b/layouts/index.json
@@ -1,6 +1,6 @@
{{ $incidents := where .Site.RegularPages "Params.section" "issue" }}{{ $active := where $incidents "Params.resolved" "=" false }}{{ $isNotice := where $active "Params.severity" "=" "notice" }}{{ $isDisrupted := where $active "Params.severity" "=" "disrupted" }}{{ $isDown := where $active "Params.severity" "=" "down" }}{
"is": "index",
- "cStateVersion": "5.5.1",
+ "cStateVersion": "5.6",
"apiVersion": "2.0",
"title": "{{ .Site.Title }}",
"languageCodeHTML": "{{ .Site.LanguageCode }}",
@@ -17,6 +17,20 @@
}
{{ end }}
],
+ {{ $informationals := where $incidents "Params.informational" "=" true }}{{ $pinnedIssues := where $informationals "Params.pin" "=" true }}
+ {{ if not $pinnedIssues }}
+ "pinnedIssues": []{{ else }}
+ "pinnedIssues": [{{ range $i, $e := $pinnedIssues }}{{ if $i }},{{ end }}
+ {
+ "is": "issue",
+ "title": "{{ .Title }}",
+ "createdAt": "{{ .Date }}",
+ "lastMod": "{{ .Lastmod }}",
+ "permalink": "{{ .Permalink }}",
+ "affected": [{{ range $i, $e := .Params.Affected }}{{ if $i }}, {{ end }}"{{ . }}"{{ end }}],
+ "filename": "{{ .File.LogicalName }}"
+ }{{ end }}
+ ]{{ end }},
"systems": [
{{ range $i, $e := .Site.Params.systems }}{{ if $i }},{{ end }}
{
diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html
index b7ec2ce..513d884 100644
--- a/layouts/issues/issue.html
+++ b/layouts/issues/issue.html
@@ -47,7 +47,10 @@
{{ $minutesForCalc := (mod $diffInMin 60) }}
{{ div (sub $diffInMin $minutesForCalc) 60 }}h
- {{ $minutesForCalc }}m {{ T "ofDowntime" }}.
+ {{ $minutesForCalc }}m
+ {{ if eq .Params.severity "down" }}
+ {{ T "ofDowntime" }}
+ {{ end }}
</strong>
<span class="tooltip__text">
@@ -66,7 +69,9 @@
{{ $secsForCalc := (mod $timeDiff 60) }}
{{ div (sub $timeDiff $secsForCalc) 60 }}m
- {{ T "ofDowntime" }}.
+ {{ if eq .Params.severity "down" }}
+ {{ T "ofDowntime" }}
+ {{ end }}
</strong>
<span class="tooltip__text">
@@ -92,6 +97,6 @@
{{ end }}
<hr>
- {{ .Content }}
+ <div class="markdown">{{ .Content }}</div>
</div>
<div class="padding"></div>
diff --git a/layouts/issues/small.html b/layouts/issues/small.html
index 94fede3..cac8109 100644
--- a/layouts/issues/small.html
+++ b/layouts/issues/small.html
@@ -52,7 +52,10 @@
{{ $minutesForCalc := (mod $diffInMin 60) }}
{{ div (sub $diffInMin $minutesForCalc) 60 }}h
- {{ $minutesForCalc }}m {{ T "ofDowntime" }}
+ {{ $minutesForCalc }}m
+ {{ if eq .Params.severity "down" }}
+ {{ T "ofDowntime" }}
+ {{ end }}
</div>
{{ else }}
<div class="ok">
@@ -61,7 +64,9 @@
{{ $secsForCalc := (mod $timeDiff 60) }}
{{ div (sub $timeDiff $secsForCalc) 60 }}m
+ {{ if eq .Params.severity "down" }}
<!-- {{ $secsForCalc }}s --> {{ T "ofDowntime" }}
+ {{ end }}
</div>
{{ end }}
{{ end }}
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html
index 2bb7f08..389d673 100644
--- a/layouts/partials/index/announcements.html
+++ b/layouts/partials/index/announcements.html
@@ -1,5 +1,7 @@
{{ $allPosts := where .Site.RegularPages "Params.section" "issue" }}
-{{ $active := where $allPosts "Params.resolved" "=" false }}
+{{ $allActive := where $allPosts "Params.resolved" "=" false }}
+{{ $active := where $allActive "Params.pin" "!=" false }}
+{{/* this $active checks if pin is explicitely set to false */}}
{{ $informationals := where $allPosts "Params.informational" "=" true }}
{{ $pinned := where $informationals "Params.pin" "=" true }}
diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html
index f9937f2..1a338c4 100644
--- a/layouts/partials/index/components.html
+++ b/layouts/partials/index/components.html
@@ -110,35 +110,35 @@
//
// By default, all is good but we change this value
// for progressively worse statuses
- var highlestLevelStatus = '';
+ var highestLevelStatus = '';
function checkStatus(element) {
var status = element.getAttribute('data-status');
if (status === 'down') {
- highlestLevelStatus = 'down'
- } else if (status === 'disrupted' && highlestLevelStatus !== 'down') {
- highlestLevelStatus = 'disrupted'
- } else if (status === 'notice' && highlestLevelStatus !== 'down' && highlestLevelStatus !== 'disrupted') {
- highlestLevelStatus = 'notice'
+ highestLevelStatus = 'down'
+ } else if (status === 'disrupted' && highestLevelStatus !== 'down') {
+ highestLevelStatus = 'disrupted'
+ } else if (status === 'notice' && highestLevelStatus !== 'down' && highestLevelStatus !== 'disrupted') {
+ highestLevelStatus = 'notice'
}
}
componentsOfThisCategory.forEach(element => checkStatus(element));
// Human readable (i18n) status name variable
- var highlestLevelStatusReadable = highlestLevelStatus;
+ var highestLevelStatusReadable = highestLevelStatus;
- if (highlestLevelStatus === 'ok') { highlestLevelStatusReadable = '{{ T "thisIsOk" }}' }
- if (highlestLevelStatus === 'notice') { highlestLevelStatusReadable = '{{ T "thisIsNotice" }}' }
- if (highlestLevelStatus === 'disrupted') { highlestLevelStatusReadable = '{{ T "thisIsDisrupted" }}' }
- if (highlestLevelStatus === 'down') { highlestLevelStatusReadable = '{{ T "thisIsDown" }}' }
+ if (highestLevelStatus === 'ok') { highestLevelStatusReadable = '{{ T "thisIsOk" }}' }
+ if (highestLevelStatus === 'notice') { highestLevelStatusReadable = '{{ T "thisIsNotice" }}' }
+ if (highestLevelStatus === 'disrupted') { highestLevelStatusReadable = '{{ T "thisIsDisrupted" }}' }
+ if (highestLevelStatus === 'down') { highestLevelStatusReadable = '{{ T "thisIsDown" }}' }
// Finally we can show the status
// (but only for categories with a name)
if (thisCategory.classList.contains('category--titled')) {
- thisCategory.querySelector('.category__head').setAttribute('data-status', highlestLevelStatus);
- thisCategory.querySelector('.category-status').innerHTML = highlestLevelStatusReadable;
+ thisCategory.querySelector('.category__head').setAttribute('data-status', highestLevelStatus);
+ thisCategory.querySelector('.category-status').innerHTML = highestLevelStatusReadable;
}
</script>
</div>
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index 691b8dc..b7dad07 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -3,7 +3,7 @@
* Dev toolset
*/
- console.log('cState v5.5.1 - https://github.com/cstate/cstate');
+ console.log('cState v5.6 - https://github.com/cstate/cstate');
document.getElementsByTagName('html')[0].className = 'js';
/**
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index c8381a9..eec0772 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -12,7 +12,7 @@
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
- <meta name="generator" content="cState v5.5.1 - https://github.com/cstate/cstate">
+ <meta name="generator" content="cState v5.6 - https://github.com/cstate/cstate">
<meta name="theme-color" content="{{ .Site.Params.brand }}">
<script>
var themeBrandColor = '{{ .Site.Params.brand }}';
@@ -107,6 +107,10 @@
padding: 16px;
}
+ .markdown pre {
+ overflow-x: scroll;
+ }
+
.contain--more { max-width: 680px; }
.center { text-align: center; }
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 551eb96..60f2cca 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -134,6 +134,8 @@ collections:
- { label: "🇲🇰 Македонски", value: "mk" }
- { label: "🏳️ Tagalog", value: "tl" }
- { label: "🇯🇵 Japanese", value: "ja" }
+ - { label: "🇺🇦 Ukrainian", value: "uk" }
+ - { label: "🇸🇪 Swedish", value: "se" }
- 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'
@@ -241,7 +243,7 @@ collections:
- 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'
+ hint: 'Experimental feature shows when changes occurred 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)'
@@ -288,7 +290,7 @@ collections:
required: false
default: true
- label: 'Disable dark mode'
- hint: 'If your OS and browser supports prefers-color-scheme and the user opted into a dark mode, the status page will be darker. Some color choices may be overriden.'
+ hint: 'If your OS and browser supports prefers-color-scheme and the user opted into a dark mode, the status page will be darker. Some color choices may be overridden.'
name: 'disableDarkMode'
widget: 'boolean'
required: false