diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index 30fde2e..a312279 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -1,14 +1,10 @@
{{ partial "breadcrumb.html" . }}
-{{ partial "lsmenu.html" (cond .IsNode . .CurrentSection) }}
+{{ partial "lsmenu.html" . }}
- {{ if .IsNode }}
- sommaire .
- {{ else }}
- cat {{ .LinkTitle }}
- {{ end }}
+ cat {{ path.Base . }}
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
diff --git a/layouts/_partials/lsline.html b/layouts/_partials/lsline.html
index 4cfed12..f721f0a 100644
--- a/layouts/_partials/lsline.html
+++ b/layouts/_partials/lsline.html
@@ -1,5 +1,7 @@
{{ $page := .page }}
-{{ cond $page.IsNode "drwxr-xr-x" "-rw-r--r--" }}
+
+ {{ cond (and $page.IsNode (not .forceFile)) "drwxr-xr-x" "-rw-r--r--" }}
+
{{/* Nombre d'éléments dans le nœud, sinon 1 si c'est un fichier. */}}
{{ cond $page.IsNode (len $page.Pages) "1" }}
@@ -24,15 +26,13 @@
{{ end }}
{{ or .linkTitle $page.LinkTitle }}
+ title="{{ $page.Title }}">{{ or .linkTitle (print
+ $page.File.BaseFileName "." $page.File.Ext) $page.LinkTitle }}
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
diff --git a/layouts/_partials/lsmenu.html b/layouts/_partials/lsmenu.html
index 4d1ab5c..565000a 100644
--- a/layouts/_partials/lsmenu.html
+++ b/layouts/_partials/lsmenu.html
@@ -11,19 +11,24 @@
{{/* La commande ls affiche total en Kio. */}}
total {{ math.Floor (div $sum 1024) }}
- - {{ partial "lsline.html" (dict "page" . "linkTitle" ".") }}
- - {{ partial "lsline.html" (dict "page" (or .Parent .) "linkTitle" "..") }}
- {{ range .Sections.ByLastmod.Reverse }}
+ -
+ {{ partial "lsline.html" (dict "page" .CurrentSection "linkTitle" "." "currentPage" $page) }}
+
+ -
+ {{ partial "lsline.html" (dict "page" (or .Parent .CurrentSection) "linkTitle" ".." "currentPage" $page) }}
+
+ {{ range .CurrentSection.Sections.ByLastmod.Reverse }}
-
- {{ partial "lsline.html" (dict "page" . "linkTitle" .LinkTitle) }}
+ {{ partial "lsline.html" (dict "page" . "linkTitle" .File.ContentBaseName "currentPage" $page ) }}
{{ end }}
- {{ range .Pages.ByPublishDate.Reverse }}
- {{ if .IsPage }}
+ -
+ {{ partial "lsline.html" (dict "page" .CurrentSection "forceFile" true "linkTitle" (path.Base .CurrentSection) "currentPage" $page) }}
+
+ {{ range .CurrentSection.RegularPages.ByPublishDate.Reverse }}
-
- {{ partial "lsline.html" (dict "page" . "linkTitle" .LinkTitle "currentPage" $page) }}
+ {{ partial "lsline.html" (dict "page" . "linkTitle" .File.LogicalName "currentPage" $page) }}
- {{ end }}
{{ end }}