Compare commits
16 Commits
6a1738b1e1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a6ba19c8d | |||
| a40b6d9f86 | |||
| d0c834bbf2 | |||
| 8fded6d1e6 | |||
| 459d2b4e14 | |||
| f166308c4a | |||
| fd2be52363 | |||
| 4deae01ae1 | |||
| 833ea7c791 | |||
| 0a8e9bfe37 | |||
| 21eabbfe9c | |||
| 23c097c761 | |||
| 13de6a3dbb | |||
| 73ed321e96 | |||
| a84ff80da0 | |||
| dd8a6217bf |
@ -3,4 +3,4 @@ title: "SCBN: le Ski-Club de Bussigny"
|
|||||||
---
|
---
|
||||||
Bienvenue sur le site du ski-club de Bussigny (la Boule de Neige).
|
Bienvenue sur le site du ski-club de Bussigny (la Boule de Neige).
|
||||||
|
|
||||||
Vous trouverez au bas de cette page la prochaine activitée prévue.
|
Vous trouverez au bas de cette page la prochaine activitée prévue. Dans le menu en haut, se trouvent la liste de toutes les [activités](/activite/) à venir, les derniers [news](/news/), toutes les informations du [ski-club](/club/) avec les conditions d'adhésion et les prix des sorties, et pour finir si vous voulez nous [contacter](/contact/).
|
||||||
|
|||||||
@ -9,6 +9,7 @@ type: autre
|
|||||||
description: Clean Up Tour à Leysin. Rendez-vous 8h00 au parking de la place du
|
description: Clean Up Tour à Leysin. Rendez-vous 8h00 au parking de la place du
|
||||||
vieux collège.
|
vieux collège.
|
||||||
publishDate: 2025-04-21T16:27:20+02:00
|
publishDate: 2025-04-21T16:27:20+02:00
|
||||||
|
show: true
|
||||||
---
|
---
|
||||||
A cette date définie dans le calendrier du ski club, la fondation SUMMIT
|
A cette date définie dans le calendrier du ski club, la fondation SUMMIT
|
||||||
à prévu le nettoyage du domaine de Leysin.
|
à prévu le nettoyage du domaine de Leysin.
|
||||||
|
|||||||
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
title: blah blah
|
|
||||||
expiryDate: 2025-07-16
|
|
||||||
publishDate: "{{now}}"
|
|
||||||
type: autre
|
|
||||||
---
|
|
||||||
Super truc
|
|
||||||
@ -6,6 +6,7 @@ expiryDate: 2025-06-10
|
|||||||
type: "AG"
|
type: "AG"
|
||||||
featured_image: ""
|
featured_image: ""
|
||||||
description: "Assemblée générale 2025 à la salle du conseil de Bussigny 20h00."
|
description: "Assemblée générale 2025 à la salle du conseil de Bussigny 20h00."
|
||||||
|
show: true
|
||||||
---
|
---
|
||||||
Cette année encore, l'assemblée sera raccourcie à son plus stricte
|
Cette année encore, l'assemblée sera raccourcie à son plus stricte
|
||||||
minimum (max. 1 heure) et sera suivie d'un apéro dînatoire pour partager
|
minimum (max. 1 heure) et sera suivie d'un apéro dînatoire pour partager
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Un Test"
|
|
||||||
date: 2025-06-13
|
|
||||||
publishDate: 2025-05-23T16:27:20+02:00
|
|
||||||
expiryDate: 2025-06-13
|
|
||||||
tags: ["ski"]
|
|
||||||
featured_image: ""
|
|
||||||
type: "autre"
|
|
||||||
description: "un petit test"
|
|
||||||
---
|
|
||||||
Voilà une page de test!
|
|
||||||
|
|
||||||
Et plus si affinité.
|
|
||||||
@ -1,10 +1,13 @@
|
|||||||
---
|
---
|
||||||
title: "Première Sortie"
|
|
||||||
date: 2025-12-13
|
|
||||||
publishDate: 2025-06-08T16:14:35+02:00
|
|
||||||
expiryDate: 2025-12-13
|
expiryDate: 2025-12-13
|
||||||
type: "ski"
|
|
||||||
featured_image: ""
|
featured_image: ""
|
||||||
description: "Première sortie à ski prévue à Brévent-Flégère."
|
date: 2025-12-13
|
||||||
|
title: Première Sortie
|
||||||
|
type: ski
|
||||||
|
description: Première sortie à ski prévue à Brévent-Flégère.
|
||||||
|
publishDate: 2025-06-08T16:14:35+02:00
|
||||||
|
show: true
|
||||||
---
|
---
|
||||||
Première sortie à ski de la saison!
|
Première sortie à ski de la saison!
|
||||||
|
|
||||||
|
Ci-dessous vous pouvez vous inscrire.
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
title: Mini-camp 2025
|
title: Mini-camp 2025
|
||||||
expiryDate: 2025-12-26
|
expiryDate: 2025-12-27
|
||||||
publishDate: 2025-06-05
|
publishDate: 2025-06-05
|
||||||
type: camp
|
type: camp
|
||||||
|
show: true
|
||||||
---
|
---
|
||||||
Mini-camp initiation au ski pour petits.
|
Mini-camp initiation au ski pour petits à Villars-sur-Ollon.
|
||||||
|
|
||||||
Durée du camp: quatres jours blah blah.
|
Durée du camp: quatres jours blah blah.
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: "Activités"
|
title: Activités
|
||||||
date: 2025-05-11T11:24:48+02:00
|
date: 2025-05-11T11:24:48+02:00
|
||||||
---
|
---
|
||||||
La liste des activités du club.
|
La liste des activités du club. Pour vous inscrire, il suffit de cliquer sur l'activité d'intérêt, et ensuite au bas de la nouvelle page vous y trouverez le formulaire d'inscription.
|
||||||
|
|||||||
@ -10,8 +10,8 @@ enableRobotsTXT = true
|
|||||||
pagerSize = 3 # this is set low for demonstrating with dummy content. Set to a higher number
|
pagerSize = 3 # this is set low for demonstrating with dummy content. Set to a higher number
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
mainSections = ["news", "activite"]
|
mainSections = ["activite", "news"]
|
||||||
recent_posts_number = 3
|
recent_posts_number = 10
|
||||||
|
|
||||||
[params.ananke]
|
[params.ananke]
|
||||||
show_recent_posts = true
|
show_recent_posts = true
|
||||||
|
|||||||
149
layouts/_default/single.html
Normal file
149
layouts/_default/single.html
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
{{ define "header" }}
|
||||||
|
{{/* We can override any block in the baseof file be defining it in the template */}}
|
||||||
|
{{ partial "page-header.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "main" }}
|
||||||
|
{{ $page := .}}
|
||||||
|
{{ $section := .Site.GetPage "section" .Section }}
|
||||||
|
<article class="flex-l flex-wrap justify-between mw8 center ph3">
|
||||||
|
<header class="mt4 w-100">
|
||||||
|
<aside class="instapaper_ignoref b helvetica tracked ttu">
|
||||||
|
{{/*
|
||||||
|
CurrentSection allows us to use the section title instead of inferring from the folder.
|
||||||
|
https://gohugo.io/variables/page/#section-variables-and-methods
|
||||||
|
*/}}
|
||||||
|
{{ .CurrentSection.Title }}
|
||||||
|
</aside>
|
||||||
|
{{- partialCached "social/share.html" . . -}}
|
||||||
|
<h1 class="f1 athelas mt3 mb1">
|
||||||
|
{{- .Title -}}
|
||||||
|
</h1>
|
||||||
|
{{ with .Params.author | default .Site.Params.author }}
|
||||||
|
<p class="tracked">
|
||||||
|
{{- if eq $page.Language "de" "en" "es" "fr" "it" "no" "pt" -}}
|
||||||
|
{{- i18n "by" -}}
|
||||||
|
{{ end -}} <strong>
|
||||||
|
{{- if reflect.IsSlice . -}}
|
||||||
|
{{ delimit . ", " | markdownify }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ . | markdownify }}
|
||||||
|
{{- end -}}
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
||||||
|
{{ if not .Date.IsZero }}
|
||||||
|
<time class="f6 mv4 dib tracked" {{ printf `datetime="%s"` (.Date.Format "2006-01-02T15:04:05Z07:00") | safeHTMLAttr }}>
|
||||||
|
{{- .Date | time.Format (default "January 2, 2006" .Site.Params.date_format) -}}
|
||||||
|
</time>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Show "reading time" and "word count" but only if one of the following are true:
|
||||||
|
1) A global config `params` value is set `show_reading_time = true`
|
||||||
|
2) A section front matter value is set `show_reading_time = true`
|
||||||
|
3) A page front matter value is set `show_reading_time = true`
|
||||||
|
*/}}
|
||||||
|
{{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}}
|
||||||
|
<span class="f6 mv4 dib tracked"> - {{ i18n "readingTime" .ReadingTime }} </span>
|
||||||
|
<span class="f6 mv4 dib tracked"> - {{ i18n "wordCount" .WordCount }} </span>
|
||||||
|
{{ end }}
|
||||||
|
</header>
|
||||||
|
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links {{ $.Param "text_color" | default "mid-gray" }} {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl4-l" "pr4-l" }} w-two-thirds-l">
|
||||||
|
{{- .Content -}}
|
||||||
|
{{- if eq .Section "activite" }}
|
||||||
|
<hr/>
|
||||||
|
<form>
|
||||||
|
<h2>Formulaire d'inscription</h2>
|
||||||
|
<h3>Participants</h3>
|
||||||
|
<p>
|
||||||
|
<table>
|
||||||
|
<tr><td>Prénom</td><td>Nom</td><td>Sport</td><td>Date de naissance<br/>(aaaa-mm-jj)</td><td>Numéro AVS</td><td>Ski avec parents</td><td>Magic Pass</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input required type="text" name="personne[1][prenom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><input required type="text" name="personne[1][nom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><select name="personne[1][sport]"><option value="Aucun">Aucun</option><option value="Ski">Ski</option><option value="Snowboard">Snowboard</option><option value="Raquettes">Raquettes</option></select></td>
|
||||||
|
<td><input required type="date" name="personne[1][naissance]" size=8 maxlength=10 /></td>
|
||||||
|
<td><input type="text" name="personne[1][avs]" size=12 maxlength=16 /></td>
|
||||||
|
<td><input type="checkbox" name="personne[1][avecparents]" value="1" /></td>
|
||||||
|
<td><input type="checkbox" name="personne[1][magicpass]" value="1" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="text" name="personne[2][prenom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><input type="text" name="personne[2][nom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><select name="personne[2][sport]"><option value="Aucun">Aucun</option><option value="Ski">Ski</option><option value="Snowboard">Snowboard</option><option value="Raquettes">Raquettes</option></select></td>
|
||||||
|
<td><input type="date" name="personne[2][naissance]" size=8 maxlength=10 /></td>
|
||||||
|
<td><input type="text" name="personne[2][avs]" size=12 maxlength=16 /></td>
|
||||||
|
<td><input type="checkbox" name="personne[2][avecparents]" value="1" /></td>
|
||||||
|
<td><input type="checkbox" name="personne[2][magicpass]" value="1" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="text" name="personne[3][prenom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><input type="text" name="personne[3][nom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><select name="personne[3][sport]"><option value="Aucun">Aucun</option><option value="Ski">Ski</option><option value="Snowboard">Snowboard</option><option value="Raquettes">Raquettes</option></select></td>
|
||||||
|
<td><input type="date" name="personne[3][naissance]" size=8 maxlength=10 /></td>
|
||||||
|
<td><input type="text" name="personne[3][avs]" size=12 maxlength=16 /></td>
|
||||||
|
<td><input type="checkbox" name="personne[3][avecparents]" value="1" /></td>
|
||||||
|
<td><input type="checkbox" name="personne[3][magicpass]" value="1" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="text" name="personne[4][prenom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><input type="text" name="personne[4][nom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><select name="personne[4][sport]"><option value="Aucun">Aucun</option><option value="Ski">Ski</option><option value="Snowboard">Snowboard</option><option value="Raquettes">Raquettes</option></select></td>
|
||||||
|
<td><input type="date" name="personne[4][naissance]" size=8 maxlength=10 /></td>
|
||||||
|
<td><input type="text" name="personne[4][avs]" size=12 maxlength=16 /></td>
|
||||||
|
<td><input type="checkbox" name="personne[4][avecparents]" value="1" /></td>
|
||||||
|
<td><input type="checkbox" name="personne[4][magicpass]" value="1" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="text" name="personne[5][prenom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><input type="text" name="personne[5][nom]" size=8 maxlength=20 /></td>
|
||||||
|
<td><select name="personne[5][sport]"><option value="Aucun">Aucun</option><option value="Ski">Ski</option><option value="Snowboard">Snowboard</option><option value="Raquettes">Raquettes</option></select></td>
|
||||||
|
<td><input type="date" name="personne[5][naissance]" size=8 maxlength=10 /></td>
|
||||||
|
<td><input type="text" name="personne[5][avs]" size=12 maxlength=16 /></td>
|
||||||
|
<td><input type="checkbox" name="personne[5][avecparents]" value="1" /></td>
|
||||||
|
<td><input type="checkbox" name="personne[5][magicpass]" value="1" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Vos Coordonnées</h3>
|
||||||
|
<p>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>E-mail:</td><td><input type="email" name="email" required /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Téléphone:</td><td><input type="tel" name="telephone" required /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Commentaire</h3>
|
||||||
|
<p>
|
||||||
|
<textarea name="commentaire" maxlength=1024 ></textarea>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<input type="submit" value="Envoyer" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
{{- end -}}
|
||||||
|
{{- partial "tags.html" . -}}
|
||||||
|
<div class="mt6 instapaper_ignoref">
|
||||||
|
{{ if .Site.Config.Services.Disqus.Shortname }}
|
||||||
|
{{ template "_internal/disqus.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.commentoEnable }}
|
||||||
|
{{- partial "commento.html" . -}}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<aside class="w-30-l mt6-l">
|
||||||
|
{{- partial "menu-contextual.html" . -}}
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
@ -18,16 +18,18 @@ collections:
|
|||||||
widget: "string"
|
widget: "string"
|
||||||
folder: "content/activite"
|
folder: "content/activite"
|
||||||
preview_path: "activite/{{slug}}"
|
preview_path: "activite/{{slug}}"
|
||||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
filter: { field: show, value: true }
|
||||||
|
slug: "{{fields.expiryDate}}-{{slug}}"
|
||||||
summary: "{{expiryDate}} {{title}} ({{type}})"
|
summary: "{{expiryDate}} {{title}} ({{type}})"
|
||||||
sortable_fields: ["expiryDate", "type", "title"]
|
sortable_fields: ["expiryDate", "type", "title"]
|
||||||
create: true
|
create: true
|
||||||
fields:
|
fields:
|
||||||
- { label: "Titre", name: "title", widget: "string" }
|
- { label: "Titre", name: "title", widget: "string" }
|
||||||
- { label: "Date", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD" }
|
- { label: "Date", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD" }
|
||||||
- { label: "Date publication", name: "publishDate", widget: "hidden", default: "{{now}}" }
|
- { label: "Date publication", name: "publishDate", widget: "datetime", date_format: "YYYY-MM-DD", default: "{{now}}" }
|
||||||
- { label: "Type", name: "type", widget: "select", default: "autre", options: [ski, camp, AG, autre] }
|
- { label: "Type", name: "type", widget: "select", default: "autre", options: [ski, camp, AG, autre] }
|
||||||
- { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
- { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
||||||
|
- { label: "show", name: "show", widget: "hidden", default: true }
|
||||||
|
|
||||||
- label: "News"
|
- label: "News"
|
||||||
name: "news"
|
name: "news"
|
||||||
@ -38,7 +40,7 @@ collections:
|
|||||||
create: true
|
create: true
|
||||||
fields:
|
fields:
|
||||||
- { label: "Titre", name: "title", widget: "string" }
|
- { label: "Titre", name: "title", widget: "string" }
|
||||||
- { label: "Date", name: "date", widget: "datetime", date_format: "YYYY-MM-DD" }
|
- { label: "Date", name: "date", widget: "datetime", date_format: "YYYY-MM-DD", default: "{{now}}" }
|
||||||
- { label: "Date expiration", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD", required: false }
|
- { label: "Date expiration", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD", required: false }
|
||||||
- { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
- { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
||||||
|
|
||||||
@ -63,3 +65,9 @@ collections:
|
|||||||
fields:
|
fields:
|
||||||
- { label: Titre, name: title, widget: string }
|
- { label: Titre, name: title, widget: string }
|
||||||
- { label: Contenu, name: body, widget: markdown, modes: [rich_text] }
|
- { label: Contenu, name: body, widget: markdown, modes: [rich_text] }
|
||||||
|
- label: "Activités"
|
||||||
|
name: "activite"
|
||||||
|
file: "content/activite/_index.md"
|
||||||
|
fields:
|
||||||
|
- { label: Titre, name: title, widget: string }
|
||||||
|
- { label: Contenu, name: body, widget: markdown, modes: [rich_text] }
|
||||||
|
|||||||
Reference in New Issue
Block a user