diff --git a/templates/index.html b/templates/index.html
index 2c807a2..57e300e 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -16,81 +16,14 @@
{{ end }}
- {{ if .Series }}
-
-
-
- Nom
-
- |
- Livre(s) |
- Auteur(s) |
-
-
- {{ range .Series }}
-
-
- {{ .Name }}
- |
- {{ .Count }} |
-
- {{ range .Authors }}
-
- {{ .Name }}
- {{ end }}
- |
- {{ end }}
-
-
+ {{ if ne (len .Series) 0 }}
+ {{ template "index_series.html" .Series }}
{{ end }}
- {{ if .Authors }}
-
+ {{ if ne (len .Authors) 0 }}
+ {{ template "index_authors.html" .Authors }}
{{ end }}
{{ if ne (len .Books) 0 }}
-
-
-
- Nom
-
- |
- Auteur(s) |
- Serie |
-
- {{ range .Books }}
-
-
- {{ .Title }} |
-
- {{ range .Authors }}
-
- {{ .Name }}
- {{ end }}
- |
-
- {{ if .Series }}
-
- {{ .Series.Name }}
- {{ .Book.SeriesIndex }}
- {{ end }}
- |
-
- {{ end }}
-
+ {{ template "index_books.html" .Books }}
{{ end }}
{{ if (ne (len .Books) 0) or (ne (len .Authors) 0) or (ne (len .Series) 0) }}