From a33928a3a4e66c8ac38fa3491524b5b1519fb2ae Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Tue, 5 Feb 2019 12:10:09 +0200 Subject: Might fix #57 since it’s deprecated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/admin/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/admin') diff --git a/static/admin/index.html b/static/admin/index.html index 03fce04..028edc1 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -34,7 +34,7 @@ var resultOfState = 'This incident has been resolved.'; } - if (layoutPostDateEnd.getYear() === layoutPostDate.getYear()) { + if (layoutPostDateEnd.getFullYear() === layoutPostDate.getFullYear()) { if (layoutPostDateEnd.getHours() === layoutPostDate.getHours()) { if (layoutPostDateEnd.getMinutes() === layoutPostDate.getMinutes()) { var resultOfStateProps = {"class": "red"}; -- cgit v1.2.3-70-g09d2 From 752d345292f7501bf74a0c058b42a46b3c4a954f Mon Sep 17 00:00:00 2001 From: Paul <18498650+pmdlt@users.noreply.github.com> Date: Tue, 5 Feb 2019 11:15:08 +0100 Subject: Addition of French language (#56) * Create fr.yaml * Add french language * Update fr.yaml for v4 --- i18n/fr.yaml | 139 ++++++++++++++++++++++++++++++++++++++++++++++++ static/admin/config.yml | 1 + 2 files changed, 140 insertions(+) create mode 100644 i18n/fr.yaml (limited to 'static/admin') diff --git a/i18n/fr.yaml b/i18n/fr.yaml new file mode 100644 index 0000000..3bc5ea4 --- /dev/null +++ b/i18n/fr.yaml @@ -0,0 +1,139 @@ +# French language file for cState +# Version 3.0 + +- id: languageCode + translation: fr +- id: languageName + translation: French +- id: languageNameShort + translation: FRE + +## +## INDEX.HTML +## + +# Summary status message +- id: isDown + translation: Nous faisons face à des problèmes majeurs +- id: isDisrupted + translation: Nous faisons face à des pertubations +- id: isNotice + translation: Merci de lire le détail +- id: isOk + translation: Tous les systèmes sont opérationnels + +# No JS warning +- id: noScriptingIntro + translation: Il semble que vous ayez désactivé JavaScript. +- id: noScriptingLink + translation: Merci d'activer les scripts +- id: noScriptingOutro + translation: pour améliorer votre expérience sur ce site Web. + +- id: thisIsDown + translation: Éteint +- id: thisIsDisrupted + translation: Perturbé +- id: thisIsNotice + translation: Maintenance +- id: thisIsOk + translation: Opérationnel + +# "Last checked" + "just now" +- id: lastChecked + translation: Dernière vérification +- id: justNow + translation: Il y a quelques secondes +- id: someTimeAgo + translation: # Unable to translate + +# Example usage: `5` + `years` +# Final result: 'Last checked 5 years ago' +# Number goes before string +# Use short variants until months +- id: yearsAgo + translation: ans +- id: monthsAgo + translation: mois +- id: daysAgo + translation: j +- id: hoursAgo + translation: h +- id: minsAgo + translation: min +- id: secondsAgo + translation: s + +- id: autoRefreshNotice + translation: Nous essaierons de rafraîchir la page toutes les 5 minutes + +# Incidents +- id: incidents + translation: Incidents +- id: incidentHistory + translation: Historique des incidents + +- id: resolved + translation: Résolu # if it's less than a min +- id: inUnderAMinute + translation: en moins d'une minute # continuing the last string +- id: resolvedAfter + translation: Résolu après # + 19 min +- id: ofDowntime + translation: de temps d'arrêt + +- id: downtimeOngoing + translation: Non résolu + + +- id: calmBeforeTheStorm + translation: Est-ce le calme avant la tempête ? +- id: noIncidentsDesc + translation: Cette page d'état ne contient aucun incident enregistré. Cela peut être dû au fait que le ou les propriétaires de la page d'état ont récemment configuré leur page d'état, n'ont eu aucun temps d'arrêt ou n'ont enregistré aucun temps d'arrêt. + + +- id: continueReading + translation: Lire la suite +- id: prev + translation: Précédent +- id: next + translation: Suivant + +## +## OTHER +## + +- id: goBack + translation: Retourner à +- id: backToTop + translation: Retour en haut de page +- id: poweredBy + translation: Propulsé par + +- id: notFound + translation: Il n'y a rien ici. +- id: notFoundText + translation: Cela pourrait être un problème de notre part. Peut-être avons-nous déplacé une certaine ressource et maintenant elle a disparu. Il est également possible que la ressource que vous essayez de visualiser soit vide. Mais cela vous dérange-t-il aussi de vérifier le lien ? + +- id: rss + translation: S'abonner via RSS +- id: toAllUpdates + translation: à toutes les mises à jour +- id: or + translation: ou +- id: onlyThisFeed + translation: seulement ce flux + +## +## v3 +## +- id: entries + translation: rubriques +- id: newestToOldest + translation: du plus récent au plus ancien + +## +## v4 +## +- id: notFoundAffected + translation: Il semble que ce système n'existe pas ou qu'il n'a jamais eu de temps d'arrêt enregistré. diff --git a/static/admin/config.yml b/static/admin/config.yml index 7ac1f5a..181f851 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -75,6 +75,7 @@ collections: options: - { label: "🇺🇸 English (default)", value: "en" } - { label: "🇱🇹 Lithuanian (official)", value: "lt" } + - { label: "🇫🇷 French", value: "fr" } - 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/mistermantas/cstate/wiki/Customization#changing-site-language' name: 'languageCode' -- cgit v1.2.3-70-g09d2 From d9ec452b95e7bd26553787b2d7f49eb72b2cb42e Mon Sep 17 00:00:00 2001 From: Nico Finkernagel Date: Wed, 20 Mar 2019 18:08:37 +0100 Subject: Added German translation (#60) + link to org repo --- i18n/de.yaml | 131 ++++++++++++++++++++++++++++++++++++++++++++++++ static/admin/config.yml | 3 +- 2 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 i18n/de.yaml (limited to 'static/admin') diff --git a/i18n/de.yaml b/i18n/de.yaml new file mode 100644 index 0000000..61d8cc2 --- /dev/null +++ b/i18n/de.yaml @@ -0,0 +1,131 @@ +# German language file for cState +# Version 3.0 + +- id: languageCode + translation: de +- id: languageName + translation: German +- id: languageNameShort + translation: DE + +## +## INDEX.HTML +## + +# Summary status message +- id: isDown + translation: Wir verzeichnen einen Ausfall +- id: isDisrupted + translation: Wir verzeichnen eine Störung +- id: isNotice + translation: Bitte lies die Ankündigungen +- id: isOk + translation: Alle Systeme funktionsbereit + +# No JS warning +- id: noScriptingIntro + translation: Uh oh! Es sieht aus, als wäre JavaScript bei Dir deaktiviert. Bitte +- id: noScriptingLink + translation: aktiviere die Einstellung, die verhinderdert, dass Skripte laufen. +- id: noScriptingOutro + translation: um Dein Erlebnis auf dieser Website zu verbessern. + +- id: thisIsDown + translation: Ausfall +- id: thisIsDisrupted + translation: Störung +- id: thisIsNotice + translation: Wartung +- id: thisIsOk + translation: Funktionsbereit + +# "Last checked" + "just now" +- id: lastChecked + translation: Zuletzt aktualisiert +- id: justNow + translation: gerade eben +- id: someTimeAgo + translation: her + +# Example usage: `5` + `years` +# Final result: 'Last checked 5 years ago' +# Number goes before string +# Use short variants until months +- id: yearsAgo + translation: Jahre +- id: monthsAgo + translation: Monate +- id: daysAgo + translation: t +- id: hoursAgo + translation: h +- id: minsAgo + translation: min +- id: secondsAgo + translation: s + +- id: autoRefreshNotice + translation: Wir versuchen die Daten alle fünf Minuten zu aktualisieren. + +# Incidents +- id: incidents + translation: Vorfälle +- id: incidentHistory + translation: Vorfalls Historie + +- id: resolved + translation: Gelöst # if it's less than a min +- id: inUnderAMinute + translation: in unter einer Minute # continuing the last string +- id: resolvedAfter + translation: Gelöst nach # + 19 min +- id: ofDowntime + translation: Ausfallzeit + +- id: downtimeOngoing + translation: Ungelöst! + +- id: calmBeforeTheStorm + translation: Is dies die Ruhe vor dem Sturm? +- id: noIncidentsDesc + translation: Es liegen keine Vorfälle vor. Eventuell hat der Besitzer (oder die Besitzer) noch keine Vorfälle verzeichnet. + +- id: continueReading + translation: Weiterlesen +- id: prev + translation: Nächste +- id: next + translation: Vorherige + +## +## OTHER +## + +- id: goBack + translation: Zurück zu +- id: backToTop + translation: Nach oben +- id: poweredBy + translation: Powered by + +- id: notFound + translation: Keine Daten vorhanden. +- id: notFoundText + translation: # + +- id: rss + translation: RSS abonnieren +- id: toAllUpdates + translation: alle Updates +- id: or + translation: or +- id: onlyThisFeed + translation: nur diesen Feed + +## +## v3 +## +- id: entries + translation: Einträge +- id: newestToOldest + translation: von alt nach neu diff --git a/static/admin/config.yml b/static/admin/config.yml index 181f851..fc6d50f 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -75,9 +75,10 @@ collections: options: - { label: "🇺🇸 English (default)", value: "en" } - { label: "🇱🇹 Lithuanian (official)", value: "lt" } + - { label: "🇩🇪 Deutsch", value: "de" } - { label: "🇫🇷 French", value: "fr" } - 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/mistermantas/cstate/wiki/Customization#changing-site-language' + 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' widget: 'string' default: 'en' -- cgit v1.2.3-70-g09d2 From e8d72d600eba90355f7c512b4e4cd90ddc233b72 Mon Sep 17 00:00:00 2001 From: berkant ipek <41230766+0xbkt@users.noreply.github.com> Date: Wed, 20 Mar 2019 20:10:32 +0300 Subject: Added Turkish translation (#61) * Create tr.yaml * Add tr to config.yml --- i18n/tr.yaml | 132 ++++++++++++++++++++++++++++++++++++++++++++++++ static/admin/config.yml | 1 + 2 files changed, 133 insertions(+) create mode 100644 i18n/tr.yaml (limited to 'static/admin') diff --git a/i18n/tr.yaml b/i18n/tr.yaml new file mode 100644 index 0000000..8e734a4 --- /dev/null +++ b/i18n/tr.yaml @@ -0,0 +1,132 @@ +# Turkish language file for cState +# Version 3.0 + +- id: languageCode + translation: tr +- id: languageName + translation: Türkçe +- id: languageNameShort + translation: TUR + +## +## INDEX.HTML +## + +# Summary status message +- id: isDown + translation: Majör problemler yaşanıyor +- id: isDisrupted + translation: Kesintiler yaşanıyor +- id: isNotice + translation: Lütfen duyuruyu okuyun +- id: isOk + translation: Tüm sistemler işlevsel durumda + +# No JS warning +- id: noScriptingIntro + translation: Bir saniye! Görünüşe göre JavaScript devre dışı. Lütfen +- id: noScriptingLink + translation: JavaScript desteğini etkinleştirin +- id: noScriptingOutro + translation: ki bu İnternet sitesini sorunsuzca görüntüleyebilesiniz. + +- id: thisIsDown + translation: Çökmüş +- id: thisIsDisrupted + translation: Aksıyor +- id: thisIsNotice + translation: Bakımda +- id: thisIsOk + translation: İşlevsel + +# "Last checked" + "just now" +- id: lastChecked + translation: Son kontrol +- id: justNow + translation: az önce +- id: someTimeAgo + translation: önce + +# Example usage: `5` + `years` +# Final result: 'Last checked 5 years ago' +# Number goes before string +# Use short variants until months +- id: yearsAgo + translation: yıl +- id: monthsAgo + translation: ay +- id: daysAgo + translation: gün +- id: hoursAgo + translation: saat +- id: minsAgo + translation: dakika +- id: secondsAgo + translation: saniye + +- id: autoRefreshNotice + translation: Her 5 dakikada bir güncellenecektir + +# Incidents +- id: incidents + translation: Olaylar +- id: incidentHistory + translation: Olay geçmişi + +- id: resolved + translation: Çözümlendi # if it's less than a min +- id: inUnderAMinute + translation: bir dakikadan kısa bir süre içinde # continuing the last string +- id: resolvedAfter + translation: Çözümlendi: # + 19 min +- id: ofDowntime + translation: süren arıza sonrasında + +- id: downtimeOngoing + translation: Çözümlenmedi! + + +- id: calmBeforeTheStorm + translation: Bu fırtına öncesi sessizlik mi? +- id: noIncidentsDesc + translation: Kaydedilmiş bir olaya rastlayamadık. Bunun sebebi, sitenin yeni kurulmuş olması, kesinti yaşanmamış olması ya da bu kesintilerin kaydedilmemesi olabilir. + +- id: continueReading + translation: Okumaya devam et +- id: prev + translation: Önceki +- id: next + translation: Sıradaki + +## +## OTHER +## + +- id: goBack + translation: Geri git +- id: backToTop + translation: Yukarıya dön +- id: poweredBy + translation: Powered by + +- id: notFound + translation: Burada bir şey yok. +- id: notFoundText + translation: Belki de aradığınız şeyi başka bir yere taşımışızdır. O şey hiç bulunmamış da olabilir. İki defa dene belki işe yarar? + +- id: rss + translation: RSS beslemesine abone ol +- id: toAllUpdates + translation: bütün güncellemelere +- id: or + translation: ya da +- id: onlyThisFeed + translation: sadece bu beslemeye + +## +## v3 +## +- id: entries + translation: girdiler +- id: newestToOldest + translation: en yeniden en eskiye diff --git a/static/admin/config.yml b/static/admin/config.yml index fc6d50f..4516f14 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -75,6 +75,7 @@ collections: options: - { label: "🇺🇸 English (default)", value: "en" } - { label: "🇱🇹 Lithuanian (official)", value: "lt" } + - { label: "🇹🇷 Turkish", value: "tr" } - { label: "🇩🇪 Deutsch", value: "de" } - { label: "🇫🇷 French", value: "fr" } - label: 'Site language in code for html[lang]' -- cgit v1.2.3-70-g09d2 From a9946b2bab2d54adac4c5e57bdd9651129ae5eb2 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Wed, 20 Mar 2019 19:12:52 +0200 Subject: #66 in dev branch --- static/admin/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/admin') diff --git a/static/admin/config.yml b/static/admin/config.yml index 4516f14..bdc5913 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -28,7 +28,7 @@ collections: - {label: "Mark as incident", name: "section", widget: "hidden", default: "issue"} - {label: "Title", name: "title", widget: "string"} - {label: "Start date & time (your time)", name: "date", widget: "datetime"} - - {label: "Mark as resolved", name: "resolved", widget: "boolean", required: false} + - {label: "Mark as resolved", name: "resolved", widget: "boolean", required: false, default: false} - {label: "End date & time (your time)", name: "resolvedWhen", widget: "datetime", required: false} - label: "Affected systems (use exact name, separated by commas)" name: "affected" -- cgit v1.2.3-70-g09d2 From c43591a6717d415e505b0d57a281e2455b88158e Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Wed, 20 Mar 2019 19:27:40 +0200 Subject: Add more emoji to N CMS + translation fixes #61 #60 --- i18n/de.yaml | 4 ---- i18n/tr.yaml | 2 +- static/admin/config.yml | 10 +++++----- 3 files changed, 6 insertions(+), 10 deletions(-) (limited to 'static/admin') diff --git a/i18n/de.yaml b/i18n/de.yaml index 61d8cc2..72944f1 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -108,10 +108,6 @@ - id: poweredBy translation: Powered by -- id: notFound - translation: Keine Daten vorhanden. -- id: notFoundText - translation: # - id: rss translation: RSS abonnieren diff --git a/i18n/tr.yaml b/i18n/tr.yaml index 8e734a4..ca24f4b 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -78,7 +78,7 @@ - id: inUnderAMinute translation: bir dakikadan kısa bir süre içinde # continuing the last string - id: resolvedAfter - translation: Çözümlendi: # + 19 min + translation: Çözümlendi # + 19 min - id: ofDowntime translation: süren arıza sonrasında diff --git a/static/admin/config.yml b/static/admin/config.yml index bdc5913..d23bcce 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -27,14 +27,14 @@ collections: fields: - {label: "Mark as incident", name: "section", widget: "hidden", default: "issue"} - {label: "Title", name: "title", widget: "string"} - - {label: "Start date & time (your time)", name: "date", widget: "datetime"} - - {label: "Mark as resolved", name: "resolved", widget: "boolean", required: false, default: false} - - {label: "End date & time (your time)", name: "resolvedWhen", widget: "datetime", required: false} - - label: "Affected systems (use exact name, separated by commas)" + - {label: "Start date & time (your time) ⌚", name: "date", widget: "datetime"} + - {label: "Mark as resolved ✔", name: "resolved", widget: "boolean", required: false, default: false} + - {label: "End date & time (your time) ⌛", name: "resolvedWhen", widget: "datetime", required: false} + - label: "Affected systems (use exact name, separated by commas) 🧐" name: "affected" widget: "list" required: false - - label: "Severity" + - label: "Severity ⚠" name: "severity" widget: "select" options: -- cgit v1.2.3-70-g09d2 From 2d32f2a384f88eee58ec5fa6c065adc29395f5cd Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Wed, 20 Mar 2019 21:53:59 +0200 Subject: Add pages to N CMS --- exampleSite/content/example-page.md | 170 ------------------------------ exampleSite/content/pages/example-page.md | 170 ++++++++++++++++++++++++++++++ static/admin/config.yml | 13 +++ 3 files changed, 183 insertions(+), 170 deletions(-) delete mode 100644 exampleSite/content/example-page.md create mode 100644 exampleSite/content/pages/example-page.md (limited to 'static/admin') diff --git a/exampleSite/content/example-page.md b/exampleSite/content/example-page.md deleted file mode 100644 index e373e84..0000000 --- a/exampleSite/content/example-page.md +++ /dev/null @@ -1,170 +0,0 @@ ---- -title: Example Page -description: This is an example page that demonstrates the capabilities of a Markdown page in cState. ---- - -Title here! -=========== - -This is an example page that demonstrates the capabilities of a Markdown page in cState. - -You can use HTML if the file extension is `.html`, but this one is `.md`. - -Let us dive in. - -Paragraphs are separated by a blank line. - -2nd paragraph. *Italic*, **bold**, and `monospace`. Itemized lists -look like: - - * this one - * that one - * the other one - -Note that --- not considering the asterisk --- the actual text -content starts at 4-columns in. - -> Block quotes are -> written like so. -> -> They can span multiple paragraphs, -> if you like. - -Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all -in chapters 12--14"). Three dots ... will be converted to an ellipsis. -Unicode is supported. ☺ - - - -An h2 header ------------- - -Here's a numbered list: - - 1. first item - 2. second item - 3. third item - -Note again how the actual text starts at 4 columns in (4 characters -from the left side). Here's a code sample: - - # Let me re-iterate ... - for i in 1 .. 10 { do-something(i) } - -As you probably guessed, indented 4 spaces. By the way, instead of -indenting the block, you can use delimited blocks, if you like: - -~~~ -define foobar() { - print "Welcome to flavor country!"; -} -~~~ - -(which makes copying & pasting easier). You can optionally mark the -delimited block for Pandoc to syntax highlight it: - -~~~python -import time -# Quick, count to ten! -for i in range(10): - # (but not *too* quick) - time.sleep(0.5) - print(i) -~~~ - - - -### An h3 header ### - -Now a nested list: - - 1. First, get these ingredients: - - * carrots - * celery - * lentils - - 2. Boil some water. - - 3. Dump everything in the pot and follow - this algorithm: - - find wooden spoon - uncover pot - stir - cover pot - balance wooden spoon precariously on pot handle - wait 10 minutes - goto first step (or shut off burner when done) - - Do not bump wooden spoon or it will fall. - -Notice again how text always lines up on 4-space indents (including -that last line which continues item 3 above). - -Here's a link to [a website](http://foo.bar), to a [local -doc](local-doc.html), and to a [section heading in the current -doc](#an-h2-header). Here's a footnote [^1]. - -[^1]: Some footnote text. - -Tables can look like this: - -Name Size Material Color --------------|-----|------------|------------ -All Business 9 leather brown -Roundabout 10 hemp canvas natural -Cinderella 11 glass transparent - -Table: Shoes sizes, materials, and colors. - -(The above is the caption for the table.) Pandoc also supports -multi-line tables: - --------- ----------------------- -Keyword Text --------- ----------------------- -red Sunsets, apples, and - other red or reddish - things. - -green Leaves, grass, frogs - and other things it's - not easy being. --------- ----------------------- - -A horizontal rule follows. - -*** - -Here's a definition list: - -apples - : Good for making applesauce. - -oranges - : Citrus! - -tomatoes - : There's no "e" in tomatoe. - -Again, text is indented 4 spaces. (Put a blank line between each -term and its definition to spread things out more.) - -Here's a "line block" (note how whitespace is honored): - -| Line one -| Line too -| Line tree - -and images can be specified like so: - -![example image](https://via.placeholder.com/350x150 "An exemplary image") - -Inline math equation: $\omega = d\phi / dt$. Display -math should get its own line like so: - -$$I = \int \rho R^{2} dV$$ - -And note that you can backslash-escape any punctuation characters -which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc. \ No newline at end of file diff --git a/exampleSite/content/pages/example-page.md b/exampleSite/content/pages/example-page.md new file mode 100644 index 0000000..e373e84 --- /dev/null +++ b/exampleSite/content/pages/example-page.md @@ -0,0 +1,170 @@ +--- +title: Example Page +description: This is an example page that demonstrates the capabilities of a Markdown page in cState. +--- + +Title here! +=========== + +This is an example page that demonstrates the capabilities of a Markdown page in cState. + +You can use HTML if the file extension is `.html`, but this one is `.md`. + +Let us dive in. + +Paragraphs are separated by a blank line. + +2nd paragraph. *Italic*, **bold**, and `monospace`. Itemized lists +look like: + + * this one + * that one + * the other one + +Note that --- not considering the asterisk --- the actual text +content starts at 4-columns in. + +> Block quotes are +> written like so. +> +> They can span multiple paragraphs, +> if you like. + +Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all +in chapters 12--14"). Three dots ... will be converted to an ellipsis. +Unicode is supported. ☺ + + + +An h2 header +------------ + +Here's a numbered list: + + 1. first item + 2. second item + 3. third item + +Note again how the actual text starts at 4 columns in (4 characters +from the left side). Here's a code sample: + + # Let me re-iterate ... + for i in 1 .. 10 { do-something(i) } + +As you probably guessed, indented 4 spaces. By the way, instead of +indenting the block, you can use delimited blocks, if you like: + +~~~ +define foobar() { + print "Welcome to flavor country!"; +} +~~~ + +(which makes copying & pasting easier). You can optionally mark the +delimited block for Pandoc to syntax highlight it: + +~~~python +import time +# Quick, count to ten! +for i in range(10): + # (but not *too* quick) + time.sleep(0.5) + print(i) +~~~ + + + +### An h3 header ### + +Now a nested list: + + 1. First, get these ingredients: + + * carrots + * celery + * lentils + + 2. Boil some water. + + 3. Dump everything in the pot and follow + this algorithm: + + find wooden spoon + uncover pot + stir + cover pot + balance wooden spoon precariously on pot handle + wait 10 minutes + goto first step (or shut off burner when done) + + Do not bump wooden spoon or it will fall. + +Notice again how text always lines up on 4-space indents (including +that last line which continues item 3 above). + +Here's a link to [a website](http://foo.bar), to a [local +doc](local-doc.html), and to a [section heading in the current +doc](#an-h2-header). Here's a footnote [^1]. + +[^1]: Some footnote text. + +Tables can look like this: + +Name Size Material Color +-------------|-----|------------|------------ +All Business 9 leather brown +Roundabout 10 hemp canvas natural +Cinderella 11 glass transparent + +Table: Shoes sizes, materials, and colors. + +(The above is the caption for the table.) Pandoc also supports +multi-line tables: + +-------- ----------------------- +Keyword Text +-------- ----------------------- +red Sunsets, apples, and + other red or reddish + things. + +green Leaves, grass, frogs + and other things it's + not easy being. +-------- ----------------------- + +A horizontal rule follows. + +*** + +Here's a definition list: + +apples + : Good for making applesauce. + +oranges + : Citrus! + +tomatoes + : There's no "e" in tomatoe. + +Again, text is indented 4 spaces. (Put a blank line between each +term and its definition to spread things out more.) + +Here's a "line block" (note how whitespace is honored): + +| Line one +| Line too +| Line tree + +and images can be specified like so: + +![example image](https://via.placeholder.com/350x150 "An exemplary image") + +Inline math equation: $\omega = d\phi / dt$. Display +math should get its own line like so: + +$$I = \int \rho R^{2} dV$$ + +And note that you can backslash-escape any punctuation characters +which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc. \ No newline at end of file diff --git a/static/admin/config.yml b/static/admin/config.yml index d23bcce..5bee7cb 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -45,6 +45,19 @@ collections: name: "body" widget: "markdown" default: "*Investigating* - We are investigating a potential issue that might affect the uptime of one our of services. We are sorry for any inconvenience this may cause you. This incident post will be updated once we have more information." + - name: "pages" + label: "Pages" + label_singular: "Page" + description: "📜 Create and manage pages (not connected or related to issues). Good for things like about pages, SLAs, ways of contact, and so forth." + folder: "content/pages" + create: true + slug: "{{slug}}" + fields: + - {label: "Title", name: "title", widget: "string"} + - {label: "Description for SEO and social media", name: "description", widget: "string", required: false} + - label: "Markdown (or HTML) body" + name: "body" + widget: "markdown" - name: "settings" label: "Settings" description: "⚠ Please be warned that by editing settings from Netlify CMS you are _OVERWRITING_ what you have in the original Git repository, meaning any CURRENT SETTINGS OR COMMENTS left will be deleted." -- cgit v1.2.3-70-g09d2