Modifie l’agencement des onglets

This commit is contained in:
Gregory Trolliet 2025-02-02 21:45:08 +01:00
parent b20b81e79e
commit f445c8588d
90 changed files with 356 additions and 152 deletions

13
layouts/cinema/li.html Normal file
View file

@ -0,0 +1,13 @@
<a class="archive hidden_link" href="{{ .Params.ExternalLink | default .RelPermalink }}">
{{ $thumb := $.Page.Resources.GetMatch "thumb.jpg"}}
{{ if $thumb }}
<img class="thumbnail" src="{{ .RelPermalink }}thumb.jpg" />
{{ else }}
<img class="thumbnail" src="/images/thumb.jpg" />
{{ end }}
<div class="description">
<span class="title">{{ .Title }}</span>
<span class="year">{{ .PublishDate.Format "2006" }}</span>
<span class="more">&rarr; plus d'infos</span>
</div>
</a>

32
layouts/cinema/list.html Normal file
View file

@ -0,0 +1,32 @@
{{ partial "header.html" . }}
<body>
<main class="wrapper">
{{ partial "navigation.html" . }}
<section id="site-page" class="container page cinema">
<article>
{{ partial "cinema_infos.md" | markdownify }}
{{ partial "scratch.html" . }}
<hr>
{{ partial "cinema_actu.md" | markdownify }}
<header>
<h1 class="list-title">
{{ i18n "articles" | title }}
</h1>
</header>
<div class="archives-list">
{{- range .Paginator.Pages -}}
{{ if in .Params.categories "Film" }}
{{- .Render "li" -}}
{{- end -}}
{{- end -}}
</div>
<p>
{{ partial "cinema_bot.md" | markdownify }}
</p>
</article>
{{ partial "pagination.html" . }}
</section>
</main>
</body>
</html>

View file

@ -0,0 +1,21 @@
{{ partial "header.html" . }}
<body>
<main class="wrapper">
{{ partial "navigation.html" . }}
<section class="container archive">
<article>
<header class="post-header">
<h1 class="post-title">
{{ .Title }}
</h1>
{{ partial "scratch.html" . }}
</header>
<div class="archive-body">
{{ .Content }}
</div>
{{ partial "article-footer.html" . }}
</article>
</section>
</main>
</body>
</html>

View file

@ -0,0 +1,7 @@
# Actus
11/24 Tournage Petit Tom, réalisé par Léo Riehl et produit par Obelus Production.
Rôle d'une jeune mère épuisée qui fuit la maison familiale avec son fils.
Sortie début 2025.
Retrouvez-moi sur [Filmmakers](https://www.filmmakers.eu/fr/actors/leon-trolliet).

View file

@ -0,0 +1,2 @@
Plus d'images sur [Youtube](https://www.youtube.com/@LéonTrolliet)
Plus d'infos par mail: [leon.trolliet@gmail.com](mailto:leon.trolliet@gmail.com)

View file

@ -0,0 +1,7 @@
# Infos
CV audiovisuel (lien du CV audiovisuel sur le mot)
[Bande-démo](https://www.youtube.com/watch?v=YQvegIzHHGE)
(photos renommées "cinéma > info1" etc...)

View file

@ -0,0 +1,34 @@
{{ $folder := (print "/content/cinema/gallery/") }}
{{ if .File }}
{{ $folder = (print "/content/" .File.Dir "gallery/") }}
{{ end }}
{{ $img := newScratch }}
{{ $files := readDir $folder }}
{{ $img.Set "max" 0 }}
{{ range sort $files "Name" "asc" }}
{{ if not .IsDir }}
{{ if not (in .Name "thumb") }}
{{ $img.Add "list" (slice .Name) }}
{{ $img.Set "max" (add ($img.Get "max") 1) }}
{{ end }}
{{ end }}
{{ end }}
{{ range $index, $val := $img.Get "list" }}
{{ $curr := index (split $val ".") 0 }}
{{ $prec := mod (add (sub $index 1) ($img.Get "max")) ($img.Get "max") }}
{{ $next := mod (add $index 1) ($img.Get "max") }}
<a id="img{{ $index }}_h" class="thumb hidden_link" href="#img{{ $index }}">
<picture>
<source srcset="gallery/{{ $curr }}.thumb.avif" type="image/avif"/>
<source srcset="gallery/{{ $curr }}.thumb.webp" type="image/webp"/>
<img src="gallery/{{ $curr }}.thumb.jpg"/>
</picture>
</a>
<!-- lightbox container hidden with CSS -->
<div class="lightbox" id="img{{ $index }}">
<a href="#img{{ $prec }}" class="light-btn hidden_link btn-prev"><<</a>
<a href="#_" class="btn-close hidden_link">X</a>
<img src="gallery/{{ $val }}">
<a href="#img{{ $next }}" class="light-btn hidden_link btn-next">>></a>
</div>
{{ end }}

View file

@ -0,0 +1,2 @@
Plus d'images sur [Youtube](https://www.youtube.com/@LéonTrolliet)
Plus d'infos par mail: [leondesastres@trolliet.info](mailto:leondesastres@trolliet.info)

View file

@ -0,0 +1,12 @@
# Infos
Instagram: [@leondesastres](https://www.instagram.com/leondesastres/)
Facebook: [@ Léon Desastres Trolliet](https://facebook.com/people/Léon-Desastres-Trolliet/100069451010806/)
email: [leondesastres@trolliet.info](mailto:leondesastres@trolliet.info)
# Actus
28.02 Pas sages, performance théâtrale collective, au Toï Toï Le Zinc, 69100 Villeubanne
07.09 Pas sages, à l'Atelier des Canulars, Lyon 7
Résidences prévues "Théâtre dans les écoles" avec Félicia Baillifard, du 3 au 9 mars, à Monthey,CH.

View file

@ -0,0 +1,36 @@
<div class="song">
<figure {{ with .Get "class" }} class="{{ . }}"{{ end }}>
<picture>
{{ with .Get "link" }}
<a href="{{ . | absURL }}" class="hidden_link">
{{ end }}
<img src="/images/{{ .Get "src" }}.jpg"
{{ with .Get "alt"}} alt="{{ . }}"{{ end }}
{{ with .Get "title"}} title="{{ . }}"{{ end }}/>
{{ with .Get "link" }}
</a>
{{ end }}
</picture>
{{ if .Get "caption" }}
<figcaption>
<p>{{ .Get "caption" }}
{{ if .Get "attr" }}
<span class="attribution">
{{ with .Get "attrlink" }}
<a href="{{ . }}">
{{ end }}
{{ .Get "attr" }}
{{ with .Get "attrlink" }}
</a>
{{ end }}
</span>
{{ end }}
</p>
</figcaption>
{{ end }}
</figure>
<audio controls>
<source src="/musique/{{ .Get "src" }}.ogg" type="audio/ogg">
Your browser does not support the audio element.
</audio>
</div>

13
layouts/theatre/li.html Normal file
View file

@ -0,0 +1,13 @@
<a class="archive hidden_link" href="{{ .Params.ExternalLink | default .RelPermalink }}">
{{ $thumb := $.Page.Resources.GetMatch "thumb.jpg"}}
{{ if $thumb }}
<img class="thumbnail" src="{{ .RelPermalink }}thumb.jpg" />
{{ else }}
<img class="thumbnail" src="/images/thumb.jpg" />
{{ end }}
<div class="description">
<span class="title">{{ .Title }}</span>
<span class="year">{{ .PublishDate.Format "2006" }}</span>
<span class="more">&rarr; plus d'infos</span>
</div>
</a>

29
layouts/theatre/list.html Normal file
View file

@ -0,0 +1,29 @@
{{ partial "header.html" . }}
<body>
<main class="wrapper">
{{ partial "navigation.html" . }}
<section id="site-page" class="container page">
<article>
{{ partial "theatre_top.md" | markdownify }}
<header>
<h1 class="list-title">
{{ i18n "articles" | title }}
</h1>
</header>
<div class="archives-list">
{{- range .Paginator.Pages -}}
{{ if in .Params.categories "Spectacle" }}
{{- .Render "li" -}}
{{- end -}}
{{- end -}}
</div>
<p>
{{ partial "theatre_bot.md" | markdownify }}
</p>
</article>
{{ partial "pagination.html" . }}
</section>
</main>
</body>
</html>

View file

@ -0,0 +1,21 @@
{{ partial "header.html" . }}
<body>
<main class="wrapper">
{{ partial "navigation.html" . }}
<section class="container archive">
<article>
<header class="post-header">
<h1 class="post-title">
{{ .Title }}
</h1>
{{ partial "scratch.html" . }}
</header>
<div class="archive-body">
{{ .Content }}
</div>
{{ partial "article-footer.html" . }}
</article>
</section>
</main>
</body>
</html>