diff --git a/content/assets/120px-Blason_Gryffondor.svg.png b/content/assets/120px-Blason_Gryffondor.svg.png new file mode 100644 index 0000000..716619f Binary files /dev/null and b/content/assets/120px-Blason_Gryffondor.svg.png differ diff --git a/content/assets/120px-Blason_Serpentard.svg.png b/content/assets/120px-Blason_Serpentard.svg.png new file mode 100644 index 0000000..f892f0b Binary files /dev/null and b/content/assets/120px-Blason_Serpentard.svg.png differ diff --git a/content/assets/120px-Coat_of_arms_Hufflepuff.svg.png b/content/assets/120px-Coat_of_arms_Hufflepuff.svg.png new file mode 100644 index 0000000..ec8e1a1 Binary files /dev/null and b/content/assets/120px-Coat_of_arms_Hufflepuff.svg.png differ diff --git a/content/assets/375px-Coat_of_arms_Hogwart_with_motto.svg.png b/content/assets/375px-Coat_of_arms_Hogwart_with_motto.svg.png new file mode 100644 index 0000000..c263f3b Binary files /dev/null and b/content/assets/375px-Coat_of_arms_Hogwart_with_motto.svg.png differ diff --git a/content/assets/Blason_Serdaigle.svg.png b/content/assets/Blason_Serdaigle.svg.png new file mode 100644 index 0000000..e333e4b Binary files /dev/null and b/content/assets/Blason_Serdaigle.svg.png differ diff --git a/content/groups/932ea1f4-b265-4b34-80ab-7b96495ac12f/_index.md b/content/groups/932ea1f4-b265-4b34-80ab-7b96495ac12f/_index.md new file mode 100644 index 0000000..4f1e339 --- /dev/null +++ b/content/groups/932ea1f4-b265-4b34-80ab-7b96495ac12f/_index.md @@ -0,0 +1,4 @@ +--- +title: Gryffondor +featured_image: ../../../assets/120px-Blason_Gryffondor.svg.png +--- diff --git a/content/groups/_index.md b/content/groups/_index.md index bd66a37..c985af7 100644 --- a/content/groups/_index.md +++ b/content/groups/_index.md @@ -1,5 +1,6 @@ --- -title: 🏠 Groupes +title: 🏠 Maisons +featured_image: ../../../assets/375px-Coat_of_arms_Hogwart_with_motto.svg.png --- -Tous les groupes associés aux joueurs +Toutes les maisons associées aux joueurs diff --git a/content/groups/d85ff41f-2342-4d77-8333-ce8b2a15ec25/_index.md b/content/groups/d85ff41f-2342-4d77-8333-ce8b2a15ec25/_index.md new file mode 100644 index 0000000..ea03ff5 --- /dev/null +++ b/content/groups/d85ff41f-2342-4d77-8333-ce8b2a15ec25/_index.md @@ -0,0 +1,4 @@ +--- +title: Serdaigle +featured_image: ../../../assets/Blason_Serdaigle.svg.png +--- diff --git a/content/groups/e012eda6-e115-46c6-9702-9fc3af27ad27/_index.md b/content/groups/e012eda6-e115-46c6-9702-9fc3af27ad27/_index.md new file mode 100644 index 0000000..d121b70 --- /dev/null +++ b/content/groups/e012eda6-e115-46c6-9702-9fc3af27ad27/_index.md @@ -0,0 +1,4 @@ +--- +title: Poufsouffle +featured_image: ../../../assets/120px-Coat_of_arms_Hufflepuff.svg.png +--- diff --git a/content/groups/fb3733e9-0dca-4ff8-ab7d-bced62a294a9/_index.md b/content/groups/fb3733e9-0dca-4ff8-ab7d-bced62a294a9/_index.md new file mode 100644 index 0000000..f84a9aa --- /dev/null +++ b/content/groups/fb3733e9-0dca-4ff8-ab7d-bced62a294a9/_index.md @@ -0,0 +1,4 @@ +--- +title: Serpentard +featured_image: ../../../assets/120px-Blason_Serpentard.svg.png +--- diff --git a/content/groups/test/_index.md b/content/groups/test/_index.md deleted file mode 100644 index 83d00d3..0000000 --- a/content/groups/test/_index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Groupe de test -groups: -- test ---- - -Hello world \ No newline at end of file diff --git a/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/1er-quiz/_index.md b/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/1er-quiz/_index.md new file mode 100644 index 0000000..2d368dc --- /dev/null +++ b/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/1er-quiz/_index.md @@ -0,0 +1,7 @@ +--- +title: 1er quiz +ac_create: +- /pages/1er-quiz/start +--- + +Bienvenue sur votre premier quiz! diff --git a/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/1er-quiz/start.md b/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/1er-quiz/start.md new file mode 100644 index 0000000..cf3ba71 --- /dev/null +++ b/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/1er-quiz/start.md @@ -0,0 +1,12 @@ +--- +title: Chapitre 01 +description: Le survivant +featured_image: /../../../../../assets/Swallow_flying_drinking.jpg +ac_choices: +- "[Des centaines de hiboux se sont mis à voler, de jour, partout dans le pays](/pages/1er-quiz/erreur)" +- "[Des averses d’étoiles filantes ont été aperçues du côté de l’Écosse](/pages/1er-quiz/erreur)" +- "[Un chat a passé la journée à observer leur maison tout en ayant un comportement d'humain](/pages/1er-quiz/erreur)" +- "[Tout à la fois](/pages/1er-quiz/9ade4891-d0f3-4644-8d4d-4e787aeaf22c)" +--- + +Quels évènements surprenants amènent les Dursley à se demander que deviennent les Potter et leur fils Harry? diff --git a/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/_index.md b/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/_index.md new file mode 100644 index 0000000..a2a0121 --- /dev/null +++ b/content/users/5af3adc6-a928-4e6f-a853-13b63383eb88/_index.md @@ -0,0 +1,15 @@ +--- +title: Nouvel utilisateur +description: Court texte +date: 2023-01-20T23:22:36+01:00 +ac_create: +- /pages/1er-quiz/_index +--- + +Bienvenue sur votre page de joueur. + +Son adresse est secrète, si quiconque y a accès il pourra jouer à votre place ou vandaliser vos badges. + +Je vous recommande d'ajouter un marque page pour cette page, et de ne pas la +partager avec quiconque, car cette adresse est secrète et vous permet de +revenir autant que vous le voulez. diff --git a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md index 0ca6fea..910988f 100644 --- a/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md +++ b/content/users/b3172741-f020-4fde-9287-502fb5bca58d/_index.md @@ -4,7 +4,7 @@ description: Helo world!... date: 2022-10-31T22:46:14+01:00 ac_create: - /pages/1er-quiz/_index -groups: test +groups: fb3733e9-0dca-4ff8-ab7d-bced62a294a9 --- -Texte \ No newline at end of file +Texte diff --git a/themes/acoeur/archetypes/groups/_index.md b/themes/acoeur/archetypes/groups/_index.md new file mode 100644 index 0000000..d6d0f40 --- /dev/null +++ b/themes/acoeur/archetypes/groups/_index.md @@ -0,0 +1,6 @@ +--- +title: Nouveau groupe +description: Sous-titre +--- + +Texte diff --git a/themes/acoeur/assets/ananke/css/custom.css b/themes/acoeur/assets/ananke/css/custom.css index cbd1998..2e2eb91 100644 --- a/themes/acoeur/assets/ananke/css/custom.css +++ b/themes/acoeur/assets/ananke/css/custom.css @@ -64,7 +64,6 @@ body #content:focus { .links .assets, body.pages header time, .author-only { display: none; } - body.author .author-only { display: initial; } body.author .ac_choices .destination { display: none; @@ -129,7 +128,6 @@ body.users .ac_choice input[type="radio"]:checked + label.text { border-radius: 0.2em; } -aside#actions input#cover, aside#actions input#file { display: none; } diff --git a/themes/acoeur/layouts/_default/assets.html b/themes/acoeur/layouts/_default/assets.html index bdbccb7..30de503 100644 --- a/themes/acoeur/layouts/_default/assets.html +++ b/themes/acoeur/layouts/_default/assets.html @@ -2,7 +2,7 @@
{{ with .Content }} diff --git a/themes/acoeur/layouts/_default/pages.html b/themes/acoeur/layouts/_default/pages.html index 33d3f2b..5523771 100644 --- a/themes/acoeur/layouts/_default/pages.html +++ b/themes/acoeur/layouts/_default/pages.html @@ -1,31 +1,31 @@ {{ define "main" }} -
- +
+ - {{ with .Content }} -
- {{- . -}} -
- {{ end }} - -
- {{ range .Pages.ByTitle }} - {{ .Render "summary-with-image" }} + {{ with .Content }} +
+ {{- . -}} +
{{ end }} + +
+ {{ range .Pages.ByTitle }} + {{ .Render "summary-with-image" }} + {{ end }} +
-
{{ end }} diff --git a/themes/acoeur/layouts/_default/single.html b/themes/acoeur/layouts/_default/single.html index 4dd23da..1608155 100644 --- a/themes/acoeur/layouts/_default/single.html +++ b/themes/acoeur/layouts/_default/single.html @@ -1,24 +1,26 @@ {{ define "main" }} -{{ $section := .Site.GetPage "section" .Section }} -
-
-
{{- .Content -}}
+
+
- {{- partial "ac_choices.html" . -}} +
{{- .Content -}}
- {{- partial "tags.html" . -}} -
+ {{- partial "ac_choices.html" . -}} -
- {{ $user := eq .Section "users" }} - {{ if not $user }} - - - {{ end }} - -
+ + {{ end }} diff --git a/themes/acoeur/layouts/_default/summary-with-image.html b/themes/acoeur/layouts/_default/summary-with-image.html index 6ecebdf..7e51920 100644 --- a/themes/acoeur/layouts/_default/summary-with-image.html +++ b/themes/acoeur/layouts/_default/summary-with-image.html @@ -1,7 +1,6 @@ {{ $featured_image := partial "func/GetFeaturedImage.html" . }} -
- {{$.Site.Language.LanguageDirection}} +
{{ if $featured_image }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
diff --git a/themes/acoeur/layouts/_default/users.html b/themes/acoeur/layouts/_default/users.html index 1ca9921..f167987 100644 --- a/themes/acoeur/layouts/_default/users.html +++ b/themes/acoeur/layouts/_default/users.html @@ -1,6 +1,21 @@ {{ define "main" }} + {{ with .Site.GetPage (path.Join "groups" .Params.groups) }} + + {{ $featured_image := partial "func/GetFeaturedImage.html" . }} + {{ if $featured_image }} + + {{ .Title }} + + {{ else }} + + {{- .Title -}} + + {{ end }} + + {{ end }} +