diff --git a/i18n/fr.toml b/i18n/fr.toml index 2a60565..6feb502 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -10,13 +10,6 @@ other = "tags" one = "archive" other = "archives" -[shows] -one = "spectacle" -other = "spectacles" -[movies] -one = "film" -other = "films" - [reading_time] one = "Une minute de lecture" other = "{{ .Count }} minutes de lecture" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0296cf9..38bc8ac 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,6 +10,7 @@ {{ .Content }} + {{ partial "footer.html" . }} diff --git a/layouts/archives/list.html b/layouts/archives/list.html index 1e1bdec..ad45179 100644 --- a/layouts/archives/list.html +++ b/layouts/archives/list.html @@ -10,29 +10,15 @@ {{ i18n "articles" | title }} -

- {{ i18n "shows" | title }} -

{{- range .Paginator.Pages -}} - {{ if in .Params.categories "Spectacle" }} - {{- .Render "li" -}} - {{- end -}} - {{- end -}} -
-

- {{ i18n "movies" | title }} -

-
- {{- range .Paginator.Pages -}} - {{ if in .Params.categories "Film" }} - {{- .Render "li" -}} - {{- end -}} + {{- .Render "li" -}} {{- end -}}
{{ partial "pagination.html" . }} + {{ partial "footer.html" . }} diff --git a/layouts/archives/single.html b/layouts/archives/single.html index 596ca63..9c43e46 100644 --- a/layouts/archives/single.html +++ b/layouts/archives/single.html @@ -11,28 +11,23 @@ {{ $img := newScratch }} {{ $folder := (print "/content/" .File.Dir "gallery/") }} {{ $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 }} + {{ $img.Add "list" (slice .Name) }} {{ 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" }} {{ $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") }} - - - - - + - - {{ partial "social.html" . }} - diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c107966..021136b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,7 +20,7 @@ {{ end }} - + {{ if and (.Site.Params.favicon) (fileExists (print "static/images/" .Site.Params.favicon)) }} {{ $name := .Site.Params.favicon }} {{ $splitted := split $name "." }} diff --git a/static/css/style.css b/static/css/style.css index 8567eda..42f86cf 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -796,7 +796,7 @@ blockquote:after { .thumb:hover { z-index: 2; } -.thumb img { +.thumb>img { max-height: 150px; max-width: 150px; border: solid 4px var(--background-color-dark);