diff --git a/layouts/_default/index.html b/layouts/_default/index.html
index 1928549..595c72e 100644
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -1,31 +1,12 @@
{{ define "main" }}
-
-
-
-
- {{ $pages := (.Site.GetPage "/portfolio").Pages.Reverse }}
- {{ range $pages }}
- -
- {{ $image := .Resources.GetMatch (default "*" .Params.image) }}
- {{ if $image }}
- {{ $resized := $image.Fill "280x280 Center"}}
-
- {{ end }}
-
-
{{ .Title }}
- {{ .Description }}
-
-
- {{ end }}
-
-
+
+
+ {{ partial "categories" . }}
+ {{ partial "projects" . }}
+
{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f3aee58..29ada9c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,31 +1,11 @@
{{ define "main" }}
-
-
+
Accueil
-
{{ .Title }}
- {{ .Content }}
-
-
-
-
- {{ $pages := (.Site.GetPage "/portfolio").Pages.Reverse }}
- {{ range $pages }}
- -
- {{ $image := .Resources.GetMatch (default "*" .Params.image) }}
- {{ if $image }}
- {{ $resized := $image.Fill "280x280 Center"}}
-
- {{ end }}
-
-
{{ .Title }}
- {{ .Description }}
-
-
- {{ end }}
-
-
+
{{ .Title }}
+ {{ .Content }}
+
+
+ {{ partial "categories" . }}
+ {{ partial "projects" . }}
+
{{ end }}
diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html
new file mode 100644
index 0000000..bab7948
--- /dev/null
+++ b/layouts/partials/categories.html
@@ -0,0 +1,10 @@
+
diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html
new file mode 100644
index 0000000..b3a0ce3
--- /dev/null
+++ b/layouts/partials/projects.html
@@ -0,0 +1,20 @@
+
+ {{
+ $pages := cond (or .IsHome .IsPage)
+ (.Site.GetPage "/portfolio").Pages.Reverse
+ .Data.Pages.Reverse
+ }}
+ {{ range $pages }}
+ -
+ {{ $image := .Resources.GetMatch (default "*" .Params.image) }}
+ {{ if $image }}
+ {{ $resized := $image.Fill "280x280 Center"}}
+
+ {{ end }}
+
+
{{ .Title }}
+ {{ .Description }}
+
+
+ {{ end }}
+
\ No newline at end of file
diff --git a/layouts/taxonomy/category.html b/layouts/taxonomy/category.html
index aa3c49c..0f44b75 100644
--- a/layouts/taxonomy/category.html
+++ b/layouts/taxonomy/category.html
@@ -8,31 +8,7 @@
{{ end }}
-
-
- {{ $pages := .Data.Pages.Reverse }}
- {{ range $pages }}
- -
- {{ $image := .Resources.GetMatch (default "*" .Params.image) }}
- {{ if $image }}
- {{ $resized := $image.Fill "280x280 Center"}}
-
- {{ end }}
-
-
{{ .Title }}
- {{ .Description }}
-
-
- {{ end }}
-
+ {{ partial "categories" . }}
+ {{ partial "projects" . }}
{{ end }}