From 8db79565f6bc84623487400551729cf8b434c526 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 17 Jan 2023 22:58:16 +0100 Subject: [PATCH] Group management first setup --- config.yaml | 2 +- content/pages.txt | 19 ++-- .../1er-quiz/_index.md | 2 + .../1er-quiz/start.md | 2 +- .../1er-quiz/_index.md | 2 + .../1er-quiz/start.md | 2 +- .../_index.md | 2 +- themes/acoeur/assets/ananke/css/custom.css | 2 + themes/acoeur/i18n/fr.yaml | 1 + .../layouts/_default/summary-with-image.html | 4 +- themes/acoeur/layouts/_default/users.html | 89 +++++++++++-------- 11 files changed, 74 insertions(+), 53 deletions(-) diff --git a/config.yaml b/config.yaml index e8b9f48..96b4c31 100644 --- a/config.yaml +++ b/config.yaml @@ -1,4 +1,4 @@ -title: 📖 moteur acoeur +title: moteur acoeur languageCode: fr theme: [acoeur, ananke] diff --git a/content/pages.txt b/content/pages.txt index 1de0e2c..22cbc6d 100644 --- a/content/pages.txt +++ b/content/pages.txt @@ -3,11 +3,10 @@ /pages/doc/vouloir.md:title: Vouloir /pages/doc/pouvoir.md:title: Pouvoir /pages/doc/intro.md:title: Introduction -/pages/1er-quiz/cff71434-fdaf-468f-838c-067059979299.md:title: Chapitre 3 -/pages/1er-quiz/b80fcc08-170e-4422-8498-ae1f97b47eda.md:title: Chapitre 5 -/pages/1er-quiz/7c038015-c989-4024-a3cf-14b8557fdb0c.md:title: Chapitre 6 -/pages/1er-quiz/e0391bfd-e794-49d8-a2f9-76802fed3b52.md:title: Chapitre 8 -/pages/1er-quiz/91b5935e-6a59-447f-afeb-cb7cc2e5bf1c.md:title: Chapitre 9 +/pages/1er-quiz/cff71434-fdaf-468f-838c-067059979299.md:title: Chapitre 03 +/pages/1er-quiz/7c038015-c989-4024-a3cf-14b8557fdb0c.md:title: Chapitre 06 +/pages/1er-quiz/e0391bfd-e794-49d8-a2f9-76802fed3b52.md:title: Chapitre 08 +/pages/1er-quiz/91b5935e-6a59-447f-afeb-cb7cc2e5bf1c.md:title: Chapitre 09 /pages/1er-quiz/e9745d63-1c31-42b4-a30a-dff7aae19059.md:title: Chapitre 10 /pages/1er-quiz/0ee87528-a6e2-4c12-9d37-3046a9855685.md:title: Chapitre 11 /pages/1er-quiz/fff60373-d04a-4923-8b0d-2836668cdf62.md:title: Chapitre 12 @@ -15,12 +14,12 @@ /pages/1er-quiz/235ce274-b98f-4f39-b363-ed8951d85699.md:title: Chapitre 15 /pages/1er-quiz/9c978c3a-801e-4c09-b4ce-8b2d6cb233b0.md:title: Chapitre 16 /pages/1er-quiz/f8dfe972-1995-4f4e-9866-97306228768c.md:title: Chapitre 17 -/pages/1er-quiz/283b1ec8-bfa7-48f3-8ce2-9d8f7487fd36.md:title: Chapitre 7 -/pages/1er-quiz/c4611613-92e4-4b4b-b9af-a246b86a5a22.md:title: Chapitre 4 +/pages/1er-quiz/283b1ec8-bfa7-48f3-8ce2-9d8f7487fd36.md:title: Chapitre 07 +/pages/1er-quiz/c4611613-92e4-4b4b-b9af-a246b86a5a22.md:title: Chapitre 04 /pages/1er-quiz/0a24b36c-32b0-40b3-aa8c-d13000e8e4cb.md:title: Félicitations -/pages/1er-quiz/9ade4891-d0f3-4644-8d4d-4e787aeaf22c.md:title: Chapitre 2 +/pages/1er-quiz/9ade4891-d0f3-4644-8d4d-4e787aeaf22c.md:title: Chapitre 02 /pages/1er-quiz/erreur.md:title: Ne te décourage pas -/pages/1er-quiz/1fafe4b4-2519-438f-b69a-e14b8616eaff.md:title: Ne te décourage pas /pages/1er-quiz/65c8096f-c940-4002-90af-52ac3c3c6cd4.md:title: Chapitre 13 -/pages/1er-quiz/start.md:title: Chapitre 1 +/pages/1er-quiz/start.md:title: Chapitre 01 +/pages/1er-quiz/b80fcc08-170e-4422-8498-ae1f97b47eda.md:title: Chapitre 05 /about.md:title: "À propos" diff --git a/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/_index.md b/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/_index.md index 09b7ef1..58e0a9d 100644 --- a/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/_index.md +++ b/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/_index.md @@ -2,4 +2,6 @@ title: 1er quiz ac_create: - /pages/1er-quiz/start +ac_errors: 0 +ac_total: 2 --- diff --git a/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/start.md b/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/start.md index 93f8005..cf3ba71 100644 --- a/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/start.md +++ b/content/users/4180d747-da58-4428-addd-8db36e5d5ad0/1er-quiz/start.md @@ -1,5 +1,5 @@ --- -title: Chapitre 1 +title: Chapitre 01 description: Le survivant featured_image: /../../../../../assets/Swallow_flying_drinking.jpg ac_choices: diff --git a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md index 09b7ef1..0fa82da 100644 --- a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md +++ b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/_index.md @@ -2,4 +2,6 @@ title: 1er quiz ac_create: - /pages/1er-quiz/start +ac_errors: 1 +ac_total: 14 --- diff --git a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/start.md b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/start.md index 93f8005..cf3ba71 100644 --- a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/start.md +++ b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/1er-quiz/start.md @@ -1,5 +1,5 @@ --- -title: Chapitre 1 +title: Chapitre 01 description: Le survivant featured_image: /../../../../../assets/Swallow_flying_drinking.jpg ac_choices: diff --git a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md index 61bf808..0ca6fea 100644 --- a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md +++ b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md @@ -7,4 +7,4 @@ ac_create: groups: test --- -Texte +Texte \ No newline at end of file diff --git a/themes/acoeur/assets/ananke/css/custom.css b/themes/acoeur/assets/ananke/css/custom.css index 25b6e38..cbd1998 100644 --- a/themes/acoeur/assets/ananke/css/custom.css +++ b/themes/acoeur/assets/ananke/css/custom.css @@ -60,9 +60,11 @@ body #content:focus { background-color: rgba(255, 255, 255, 0.5); } +.no-text .summary, .links .assets, body.pages header time, .author-only { display: none; } + body.author .author-only { display: initial; } body.author .ac_choices .destination { display: none; diff --git a/themes/acoeur/i18n/fr.yaml b/themes/acoeur/i18n/fr.yaml index 544cb9a..c5b786a 100644 --- a/themes/acoeur/i18n/fr.yaml +++ b/themes/acoeur/i18n/fr.yaml @@ -9,6 +9,7 @@ pages: users: create: 👤 Créer un nouveau joueur cover: 🎭 Avatar + group: 🏠 Groupe delete: 🗑 Supprimer joueur send: 📧 Envoyer invitation assets: diff --git a/themes/acoeur/layouts/_default/summary-with-image.html b/themes/acoeur/layouts/_default/summary-with-image.html index 6a0215e..6ecebdf 100644 --- a/themes/acoeur/layouts/_default/summary-with-image.html +++ b/themes/acoeur/layouts/_default/summary-with-image.html @@ -29,9 +29,9 @@ {{ .Title }} - +

{{ $.Param "read_more_copy" | default (i18n "readMore") | humanize }} diff --git a/themes/acoeur/layouts/_default/users.html b/themes/acoeur/layouts/_default/users.html index 1fe9ff9..1ca9921 100644 --- a/themes/acoeur/layouts/_default/users.html +++ b/themes/acoeur/layouts/_default/users.html @@ -1,46 +1,61 @@ {{ define "main" }} - {{ end }}