Compare commits
No commits in common. "05907377febe5e6e8f34d36e9c34a02bdf7e2e77" and "9da2a99bc9e658ccfe3700e8071abd2c781fbc7d" have entirely different histories.
05907377fe
...
9da2a99bc9
8 changed files with 13 additions and 41 deletions
|
@ -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"
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -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 -}}
|
|
||||||
</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 -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</section>
|
</section>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -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 }}
|
{{ end }}
|
||||||
|
{{ with ($img.Get "list") }}
|
||||||
|
{{ $img.Set "max" (add 1 (int (index (split (index (split (index (last 1 .) 0) ".") 0) "img") 1))) }}
|
||||||
|
{{ 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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 "." }}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue