diff --git a/hugo.toml b/hugo.toml index b8f8c2f..67ea235 100644 --- a/hugo.toml +++ b/hugo.toml @@ -10,8 +10,8 @@ enableRobotsTXT = true pagerSize = 3 # this is set low for demonstrating with dummy content. Set to a higher number [params] -mainSections = ["news", "activite"] -recent_posts_number = 3 +mainSections = ["activite", "news"] +recent_posts_number = 10 [params.ananke] show_recent_posts = true diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..b5151a4 --- /dev/null +++ b/layouts/_default/single.html @@ -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 }} +
+
+ + {{- partialCached "social/share.html" . . -}} +

+ {{- .Title -}} +

+ {{ with .Params.author | default .Site.Params.author }} +

+ {{- if eq $page.Language "de" "en" "es" "fr" "it" "no" "pt" -}} + {{- i18n "by" -}} + {{ end -}} + {{- if reflect.IsSlice . -}} + {{ delimit . ", " | markdownify }} + {{- else -}} + {{ . | markdownify }} + {{- end -}} + +

+ {{ end }} + {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}} + {{ if not .Date.IsZero }} + + {{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) )}} + - {{ i18n "readingTime" .ReadingTime }} + - {{ i18n "wordCount" .WordCount }} + {{ end }} +
+
+ {{- .Content -}} + {{- if eq .Section "activite" }} +
+
+

Formulaire d'inscription

+

Participants

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PrénomNomSportDate de naissance
(aaaa-mm-jj)
Numéro AVSSki avec parentsMagic Pass
+

+ +

Vos Coordonnées

+

+ + + + + + + +
E-mail:
Téléphone:
+

+ +

Commentaire

+

+ +

+ +

+ +

+
+ {{- end -}} + {{- partial "tags.html" . -}} +
+ {{ if .Site.Config.Services.Disqus.Shortname }} + {{ template "_internal/disqus.html" . }} + {{ end }} + {{ if .Site.Params.commentoEnable }} + {{- partial "commento.html" . -}} + {{ end }} +
+
+ + + +
+{{ end }}