Compare commits

..

No commits in common. "05907377febe5e6e8f34d36e9c34a02bdf7e2e77" and "9da2a99bc9e658ccfe3700e8071abd2c781fbc7d" have entirely different histories.

8 changed files with 13 additions and 41 deletions

View file

@ -10,13 +10,6 @@ other = "tags"
one = "archive" one = "archive"
other = "archives" other = "archives"
[shows]
one = "spectacle"
other = "spectacles"
[movies]
one = "film"
other = "films"
[reading_time] [reading_time]
one = "Une minute de lecture" one = "Une minute de lecture"
other = "{{ .Count }} minutes de lecture" other = "{{ .Count }} minutes de lecture"

View file

@ -10,6 +10,7 @@
{{ .Content }} {{ .Content }}
</article> </article>
</section> </section>
{{ partial "footer.html" . }}
</main> </main>
</body> </body>
</html> </html>

View file

@ -10,29 +10,15 @@
{{ i18n "articles" | title }} {{ i18n "articles" | title }}
</h1> </h1>
</header> </header>
<h2 class="list-subtitle">
{{ i18n "shows" | title }}
</h2>
<div class="archives-list"> <div class="archives-list">
{{- range .Paginator.Pages -}} {{- range .Paginator.Pages -}}
{{ if in .Params.categories "Spectacle" }}
{{- .Render "li" -}} {{- .Render "li" -}}
{{- end -}} {{- end -}}
{{- end -}}
</div>
<h2 class="list-subtitle">
{{ i18n "movies" | title }}
</h2>
<div class="archives-list">
{{- range .Paginator.Pages -}}
{{ if in .Params.categories "Film" }}
{{- .Render "li" -}}
{{- end -}}
{{- end -}}
</div> </div>
</article> </article>
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</section> </section>
{{ partial "footer.html" . }}
</main> </main>
</body> </body>
</html> </html>

View file

@ -11,28 +11,23 @@
{{ $img := newScratch }} {{ $img := newScratch }}
{{ $folder := (print "/content/" .File.Dir "gallery/") }} {{ $folder := (print "/content/" .File.Dir "gallery/") }}
{{ $files := readDir $folder }} {{ $files := readDir $folder }}
{{ $img.Set "max" 0 }}
{{ range sort $files "Name" "asc" }} {{ range sort $files "Name" "asc" }}
{{ if not .IsDir }} {{ if not .IsDir }}
{{ if not (in .Name "thumb") }}
{{ $img.Add "list" (slice .Name) }} {{ $img.Add "list" (slice .Name) }}
{{ $img.Set "max" (add ($img.Get "max") 1) }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ with ($img.Get "list") }}
{{ $img.Set "max" (add 1 (int (index (split (index (split (index (last 1 .) 0) ".") 0) "img") 1))) }}
{{ end }} {{ end }}
{{ range $index, $val := $img.Get "list" }} {{ range $index, $val := $img.Get "list" }}
{{ $curr := index (split $val ".") 0 }} {{ $curr := index (split $val ".") 0 }}
{{ $prec := mod (add (sub $index 1) ($img.Get "max")) ($img.Get "max") }} {{ $prec := mod (add (sub $index 1) ($img.Get "max")) ($img.Get "max") }}
{{ $next := mod (add $index 1) ($img.Get "max") }} {{ $next := mod (add $index 1) ($img.Get "max") }}
<a class="thumb hidden_link" href="#img{{ $index }}"> <a class="thumb hidden_link" href="#img{{ $index }}">
<picture> <img src="gallery/thumb/{{ $curr }}.jpg">
<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> </a>
<!-- lightbox container hidden with CSS --> <!-- lightbox container hidden with CSS -->
<div class="lightbox" id="img{{ $index }}"> <div class="lightbox" id="{{ $curr }}">
<a href="#img{{ $prec }}" class="light-btn hidden_link btn-prev"><<</a> <a href="#img{{ $prec }}" class="light-btn hidden_link btn-prev"><<</a>
<a href="#_" class="btn-close hidden_link">X</a> <a href="#_" class="btn-close hidden_link">X</a>
<img src="gallery/{{ $val }}"> <img src="gallery/{{ $val }}">
@ -62,6 +57,7 @@
{{ partial "article-footer.html" . }} {{ partial "article-footer.html" . }}
</article> </article>
</section> </section>
{{ partial "footer.html" . }}
</main> </main>
</body> </body>
</html> </html>

View file

@ -9,15 +9,13 @@
<header> <header>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
</header> </header>
<div id="footer-name" class="footer-element">{{ .Site.Params.name }}</div>
{{ partial "social.html" . }}
<article> <article>
{{ .Summary }} {{ .Summary }}
</article> </article>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>
{{ partial "footer.html" . }}
</main> </main>
</body> </body>
</html> </html>

View file

@ -6,6 +6,4 @@
<h1>{{ .Site.Params.author }}</h1> <h1>{{ .Site.Params.author }}</h1>
<h2>{{ .Site.Params.info }}</h2> <h2>{{ .Site.Params.info }}</h2>
</div> </div>
{{ partial "social.html" . }}
</div> </div>

View file

@ -20,7 +20,7 @@
<meta name="author" content="{{ .Site.Params.author }}"> <meta name="author" content="{{ .Site.Params.author }}">
{{ end }} {{ end }}
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/style.css">
<link href="{{ .Site.BaseURL }}/index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"> <link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
{{ if and (.Site.Params.favicon) (fileExists (print "static/images/" .Site.Params.favicon)) }} {{ if and (.Site.Params.favicon) (fileExists (print "static/images/" .Site.Params.favicon)) }}
{{ $name := .Site.Params.favicon }} {{ $name := .Site.Params.favicon }}
{{ $splitted := split $name "." }} {{ $splitted := split $name "." }}

View file

@ -796,7 +796,7 @@ blockquote:after {
.thumb:hover { .thumb:hover {
z-index: 2; z-index: 2;
} }
.thumb img { .thumb>img {
max-height: 150px; max-height: 150px;
max-width: 150px; max-width: 150px;
border: solid 4px var(--background-color-dark); border: solid 4px var(--background-color-dark);