+
{{ partial "ac_notation" .Parent }}
diff --git a/themes/acoeur/layouts/_default/users.html b/themes/acoeur/layouts/_default/users.html
index f167987..018ebe1 100644
--- a/themes/acoeur/layouts/_default/users.html
+++ b/themes/acoeur/layouts/_default/users.html
@@ -1,65 +1,72 @@
{{ define "main" }}
- {{ with .Site.GetPage (path.Join "groups" .Params.groups) }}
+ {{ if .Params.groups }}
+ {{ with .Site.GetPage (path.Join "groups" .Params.groups) }}
- {{ $featured_image := partial "func/GetFeaturedImage.html" . }}
- {{ if $featured_image }}
-
-
-
- {{ else }}
-
- {{- .Title -}}
-
- {{ end }}
+ {{ $featured_image := partial "func/GetFeaturedImage.html" . }}
+ {{ if $featured_image }}
+
+
+
+ {{ else }}
+
+ {{- .Title -}}
+
+ {{ end }}
- {{ end }}
+ {{ end }}
+ {{ end }}
-
-
-
- {{ range .Pages }}
-
- {{ .Render "summary-with-image" }}
-
- {{ end }}
+ {{ with .Content }}
+
+ {{ end }}
- {{- template "_internal/pagination.html" . -}}
-
+
+ {{ if .Parent.IsHome }}
+ {{ range .Pages }}
+
+ {{ .Render "summary-with-image" }}
+
+ {{ end }}
+ {{ else }}
+ {{ range .RegularPagesRecursive }}
+
+ {{ .Render "summary-with-image" }}
+
+ {{ end }}
+ {{ end }}
+
+
{{ end }}
diff --git a/themes/acoeur/layouts/index.html b/themes/acoeur/layouts/index.html
index c430a28..6bbfc02 100644
--- a/themes/acoeur/layouts/index.html
+++ b/themes/acoeur/layouts/index.html
@@ -1,26 +1,36 @@
{{ define "header" }}
{{/* We can override any block in the baseof file be defining it in the template */}}
- {{ partial "page-header.html" . }}
+ {{ partial "page-header.html" . }}
{{ end }}
{{ define "main" }}
-
- {{ .Content }}
-
+
+ {{ .Content }}
+
-
- {{ range .Sections }}
- -
- {{ .Title }}
-
- - {{ add (len .Pages) (len .Resources) }}
- {{ end }}
+
+ {{ range .Sections }}
+ -
+ {{ .Title }}
+
+ - {{ add (len .Pages) (len .Resources) }}
+ {{ end }}
- {{ with site.GetPage "groups" }}
- -
- {{ .Title }}
-
- - {{ len site.Taxonomies.groups }}
+ {{ with site.GetPage "groups" }}
+ -
+ {{ .Title }}
+
+ - {{ len site.Taxonomies.groups }}
+ {{ end }}
+
+
+ {{ with site.GetPage "users" }}
+
+ {{ range .RegularPagesRecursive }}
+
+ {{ .Render "summary-with-image" }}
+
+ {{ end }}
+
{{ end }}
-
{{ end }}
diff --git a/themes/acoeur/layouts/partials/ac_notation.html b/themes/acoeur/layouts/partials/ac_notation.html
index 360dcfc..6228d59 100644
--- a/themes/acoeur/layouts/partials/ac_notation.html
+++ b/themes/acoeur/layouts/partials/ac_notation.html
@@ -1,6 +1,6 @@
{{ if gt .Params.ac_total 0 }}
-
- {{ sub .Params.ac_total .Params.ac_errors }} / {{ .Params.ac_total }}
-
+
+ {{ sub .Params.ac_total .Params.ac_errors }} / {{ .Params.ac_total }}
+
{{ end }}
diff --git a/themes/acoeur/layouts/partials/breadcrumb.html b/themes/acoeur/layouts/partials/breadcrumb.html
index 321c114..4ab52c0 100644
--- a/themes/acoeur/layouts/partials/breadcrumb.html
+++ b/themes/acoeur/layouts/partials/breadcrumb.html
@@ -1,9 +1,7 @@
-{{ if and .Parent.IsSection (not .Parent.IsHome) }}
-
-{{ partial "breadcrumb.html" .Parent }}
-
-
- {{- .Title -}}
-
-
+{{ range .Ancestors.Reverse }}
+ {{ if and (not .IsHome) (not .Parent.IsHome) }}
+
+ {{- .Title -}}
+
+ {{ end }}
{{ end }}