From 579f96161885465b185966c503427b1172e62968 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Sun, 9 May 2021 13:21:50 +0300 Subject: v5.0.3 --- README.md | 16 +++++++--------- exampleSite/README.md | 11 ++++++----- layouts/404.html | 7 +++++++ layouts/affected/404.html | 21 --------------------- layouts/index.json | 2 +- layouts/partials/js.html | 2 +- layouts/partials/meta.html | 4 +++- 7 files changed, 25 insertions(+), 38 deletions(-) delete mode 100644 layouts/affected/404.html diff --git a/README.md b/README.md index e073253..2f588fb 100644 --- a/README.md +++ b/README.md @@ -263,10 +263,12 @@ Check out [the wiki](https://github.com/cstate/cstate/wiki). ## Contribute šŸ’„ -### Making a change in the code +### Making a change in the code for the cstate/cstate repo PRs should be submitted to the `dev` branch, if it exists. Before submitting a pull request, create an issue to [discuss the implications of your proposal](https://github.com/cstate/cstate/issues). +The root directory is where the theme itself is (the cState guts, basically) and the `exampleSite` folder houses all content for your specific site. Use this local setup to experiment before making a PR. + Here is a guide for how you should develop: 1. Clone this repository in the command line: @@ -275,22 +277,18 @@ Here is a guide for how you should develop: git clone --recursive -b master https://github.com/cstate/cstate.git ``` -2. Navigate to the theme directory: - -```bash -cd cstate/exampleSite -``` - -3. Launch the development setup like this: +2. Launch the development setup like this: ```bash # old command +# navigate to the directory where your content is and start dev server from there +cd cstate/exampleSite hugo serve --baseUrl=http://localhost/ --theme=cstate --themesDir=../.. --verbose # new command partially works for v5.0.2; does not load images from static/ +# for this you need to be in the theme root hugo serve --config=exampleSite/config.yml --theme=../ --contentDir=exampleSite/content ``` -The main directory is the theme itself (the cState guts, basically) and the `exampleSite` folder houses all content. Use this local setup to experiment before making a PR. ### For translators diff --git a/exampleSite/README.md b/exampleSite/README.md index c9d32e0..89b6971 100644 --- a/exampleSite/README.md +++ b/exampleSite/README.md @@ -1,10 +1,9 @@ -# cState Example Site v5.0.2 +# cState Site v5.0.3 This is the default cState status page website directory/folder. -Example site repository link (you are here): https://github.com/cstate/example - -Main cState source code repository: https://github.com/cstate/cstate +* Example site repository link (you are here): https://github.com/cstate/example +* Main cState source code repository: https://github.com/cstate/cstate ## Are you updating? Use these commands @@ -19,9 +18,11 @@ Then do `git add -A; git commit -m "Update cState"; git push origin

{{ T "notFound" }}

+

{{ T "notFoundText" }}

+ + {{ partial "js" . }} {{ partial "footer" . }} diff --git a/layouts/affected/404.html b/layouts/affected/404.html deleted file mode 100644 index 527c280..0000000 --- a/layouts/affected/404.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ partial "meta" . }} - -{{ $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" }} - - - {{ partial "header" . }} - -
-

{{ T "notFoundAffected" }}

-

{{ T "notFoundText" }}

-
- - {{ partial "js" . }} - {{ partial "footer" . }} - - diff --git a/layouts/index.json b/layouts/index.json index c707f5c..35145d5 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.0.2", + "cStateVersion": "5.0.3", "apiVersion": "2.0", "title": "{{ .Site.Title }}", "languageCodeHTML": "{{ .Site.LanguageCode }}", diff --git a/layouts/partials/js.html b/layouts/partials/js.html index ef9464a..c0c044d 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -3,7 +3,7 @@ * Dev toolset */ - console.log('cState v5.0.2 - https://github.com/cstate/cstate'); + console.log('cState v5.0.3 - https://github.com/cstate/cstate'); document.getElementsByTagName('html')[0].className = 'js'; /** diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 3fec38c..4a0e923 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -12,7 +12,7 @@ {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - +