diff --git a/i18n/fr.toml b/i18n/fr.toml index 6feb502..2a60565 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -10,6 +10,13 @@ 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 38bc8ac..0296cf9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,7 +10,6 @@ {{ .Content }} - {{ partial "footer.html" . }} diff --git a/layouts/archives/list.html b/layouts/archives/list.html index ad45179..1e1bdec 100644 --- a/layouts/archives/list.html +++ b/layouts/archives/list.html @@ -10,15 +10,29 @@ {{ i18n "articles" | title }} +

+ {{ i18n "shows" | title }} +

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

+ {{ i18n "movies" | title }} +

+
+ {{- range .Paginator.Pages -}} + {{ if in .Params.categories "Film" }} + {{- .Render "li" -}} + {{- end -}} {{- end -}}
{{ partial "pagination.html" . }} - {{ partial "footer.html" . }} diff --git a/layouts/archives/single.html b/layouts/archives/single.html index 9c43e46..596ca63 100644 --- a/layouts/archives/single.html +++ b/layouts/archives/single.html @@ -11,23 +11,28 @@ {{ $img := newScratch }} {{ $folder := (print "/content/" .File.Dir "gallery/") }} {{ $files := readDir $folder }} + {{ $img.Set "max" 0 }} {{ range sort $files "Name" "asc" }} {{ if not .IsDir }} - {{ $img.Add "list" (slice .Name) }} + {{ if not (in .Name "thumb") }} + {{ $img.Add "list" (slice .Name) }} + {{ $img.Set "max" (add ($img.Get "max") 1) }} + {{ 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" }} {{ $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 021136b..c107966 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 42f86cf..8567eda 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);