Compare commits
28 Commits
305dbb1dcc
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a6ba19c8d | |||
| a40b6d9f86 | |||
| d0c834bbf2 | |||
| 8fded6d1e6 | |||
| 459d2b4e14 | |||
| f166308c4a | |||
| fd2be52363 | |||
| 4deae01ae1 | |||
| 833ea7c791 | |||
| 0a8e9bfe37 | |||
| 21eabbfe9c | |||
| 23c097c761 | |||
| 13de6a3dbb | |||
| 73ed321e96 | |||
| a84ff80da0 | |||
| dd8a6217bf | |||
| 6a1738b1e1 | |||
| b33fe64cf6 | |||
| 32b3784d87 | |||
| 3043cad3ea | |||
| 1e8fe10952 | |||
| 3948e64257 | |||
| c96aa49a8a | |||
| 48c846b774 | |||
| 7b1700f09b | |||
| 7ab9c6091e | |||
| 3287a8c02e | |||
| 48d1cf4e11 |
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "{{ replace (.File.ContentBaseName | replaceRE `(.{4}-.{1,2}-.{1,2}-` "") "-" " " | title }}"
|
||||
title: "{{ replace (.File.ContentBaseName | replaceRE `.{4}-.{1,2}-.{1,2}-` "") "-" " " | title }}"
|
||||
date: {{ .File.ContentBaseName | replaceRE `(.{4}-.{1,2}-.{1,2})-.*` "$1" }}
|
||||
publishDate: {{ .Date }}
|
||||
expiryDate: {{ .File.ContentBaseName | replaceRE `(.{4}-.{1,2}-.{1,2})-.*` "$1" }}
|
||||
|
||||
@ -2,3 +2,5 @@
|
||||
title: "SCBN: le Ski-Club de Bussigny"
|
||||
---
|
||||
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. 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
|
||||
vieux collège.
|
||||
publishDate: 2025-04-21T16:27:20+02:00
|
||||
show: true
|
||||
---
|
||||
A cette date définie dans le calendrier du ski club, la fondation SUMMIT
|
||||
à prévu le nettoyage du domaine de Leysin.
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
---
|
||||
title: Une belle activité de ski en été
|
||||
expiryDate: 2025-06-27
|
||||
publishDate: 2025-06-05
|
||||
type: ski
|
||||
---
|
||||
Voilà la description.
|
||||
|
||||
## Un titre
|
||||
|
||||
et autre chose.
|
||||
@ -6,6 +6,7 @@ expiryDate: 2025-06-10
|
||||
type: "AG"
|
||||
featured_image: ""
|
||||
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
|
||||
minimum (max. 1 heure) et sera suivie d'un apéro dînatoire pour partager
|
||||
|
||||
@ -1,11 +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!
|
||||
13
content/activite/2025-12-13-première-sortie.md
Normal file
13
content/activite/2025-12-13-première-sortie.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
expiryDate: 2025-12-13
|
||||
featured_image: ""
|
||||
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!
|
||||
|
||||
Ci-dessous vous pouvez vous inscrire.
|
||||
@ -1,9 +1,10 @@
|
||||
---
|
||||
title: Mini-camp 2025
|
||||
expiryDate: 2025-12-26
|
||||
expiryDate: 2025-12-27
|
||||
publishDate: 2025-06-05
|
||||
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.
|
||||
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "Activités"
|
||||
title: Activités
|
||||
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.
|
||||
|
||||
@ -6,15 +6,12 @@ theme = 'ananke'
|
||||
sectionPagesMenu = "main"
|
||||
enableRobotsTXT = true
|
||||
|
||||
[services.googleAnalytics]
|
||||
id = ''
|
||||
|
||||
[pagination]
|
||||
pagerSize = 3 # this is set low for demonstrating with dummy content. Set to a higher number
|
||||
|
||||
[params]
|
||||
mainSections = ["nouvelles", "activite"]
|
||||
recent_posts_number = 3
|
||||
mainSections = ["activite", "news"]
|
||||
recent_posts_number = 10
|
||||
|
||||
[params.ananke]
|
||||
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 }}
|
||||
@ -2,7 +2,7 @@ backend:
|
||||
name: gitea
|
||||
repo: scbn/www
|
||||
branch: main
|
||||
app_id: 7bb5ea52-1123-4810-818c-370e1a958a7f
|
||||
app_id: 54951e07-d301-494b-a2f2-df3ef71dfdb6
|
||||
api_root: https://git.scbn.ch/api/v1
|
||||
base_url: https://git.scbn.ch
|
||||
auth_endpoint: https://git.scbn.ch/login/oauth/authorize
|
||||
@ -18,27 +18,29 @@ collections:
|
||||
widget: "string"
|
||||
folder: "content/activite"
|
||||
preview_path: "activite/{{slug}}"
|
||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||
filter: { field: show, value: true }
|
||||
slug: "{{fields.expiryDate}}-{{slug}}"
|
||||
summary: "{{expiryDate}} {{title}} ({{type}})"
|
||||
sortable_fields: ["expiryDate", "type", "title"]
|
||||
create: true
|
||||
fields:
|
||||
- { label: "Titre", name: "title", widget: "string" }
|
||||
- { 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: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
||||
- { label: "show", name: "show", widget: "hidden", default: true }
|
||||
|
||||
- label: "Nouvelles"
|
||||
name: "nouvelle"
|
||||
- label: "News"
|
||||
name: "news"
|
||||
widget: "string"
|
||||
folder: "content/nouvelle"
|
||||
preview_path: "nouvelle/{{slug}}"
|
||||
folder: "content/news"
|
||||
preview_path: "news/{{slug}}"
|
||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||
create: true
|
||||
fields:
|
||||
- { 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: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }
|
||||
|
||||
@ -63,3 +65,9 @@ collections:
|
||||
fields:
|
||||
- { label: Titre, name: title, widget: string }
|
||||
- { 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] }
|
||||
|
||||
BIN
static/images/uploads/c.png
Normal file
BIN
static/images/uploads/c.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 802 KiB |
Reference in New Issue
Block a user