feat: Ajout des liens entre les évènements et les associations
This commit is contained in:
@ -24,7 +24,14 @@
|
||||
<h1>{{ .RenderString .Title }}</h1>
|
||||
<div class="container news md">
|
||||
<small>
|
||||
Publié le <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }}
|
||||
Publié le <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if or (isset .Params "auteur") (isset .Params "authors") }} - {{ if isset .Params "authors" -}}
|
||||
{{ range $key, $value := .Params.authors }}
|
||||
{{ with site.GetPage $value }}
|
||||
{{ if gt $key 0 }} & {{ end }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end }}{{ if isset .Params "auteur" }}{{ if isset .Params "authors" -}} & {{ end }}{{ .Params.auteur }}{{ end }}{{ end }}
|
||||
</small>
|
||||
{{ .Content }}
|
||||
<aside>
|
||||
|
@ -44,5 +44,21 @@
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if isset .Params "actualites" }}
|
||||
<div class="container md">
|
||||
<aside>
|
||||
<hr>
|
||||
<h2>
|
||||
Les évènements de l'association
|
||||
</h2>
|
||||
{{ range .Params.actualites }}
|
||||
{{ with site.GetPage . }}
|
||||
{{ .Scratch.Set "big" false }}
|
||||
{{ partial "article-preview.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</aside>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -16,7 +16,14 @@
|
||||
</div>
|
||||
<div class="details">
|
||||
<small>
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }}
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>{{ if or (isset .Params "auteur") (isset .Params "authors") }} - {{ if isset .Params "authors" -}}
|
||||
{{ range $key, $value := .Params.authors }}
|
||||
{{ with site.GetPage $value }}
|
||||
{{ if gt $key 0 }} & {{ end }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end }}{{ if isset .Params "auteur" }}{{ if isset .Params "authors" -}} & {{ end }}{{ .Params.auteur }}{{ end }}{{ end }}
|
||||
</small>
|
||||
{{ if $isBig }}
|
||||
<h2 title="{{ $titleWithoutHTML }}"><a href="{{ .RelPermalink }}">{{ $title }}</a></h2>
|
||||
|
Reference in New Issue
Block a user