diff --git a/assets/style.scss b/assets/style.scss
index 2a62375..ad3b074 100644
--- a/assets/style.scss
+++ b/assets/style.scss
@@ -109,6 +109,24 @@ a:active {
}
}
+ul.lsresult {
+ margin: 0;
+ padding: 0;
+ display: table;
+
+ li {
+ display: table-row;
+ }
+
+ li span {
+ display: table-cell;
+ }
+
+ li span:not(:first-child) {
+ padding-left: 1ch;
+ }
+}
+
// Menus.
// ======
.menu {
diff --git a/hugo.yaml b/hugo.yaml
index 3fa659a..25f8d89 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -16,6 +16,10 @@ frontmatter:
- :fileModTime
- :default
+params:
+ owner: alexis
+ group: alexis
+
pagination:
pagerSize: 15
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index 2420ea2..30fde2e 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -1,4 +1,14 @@
{{ partial "breadcrumb.html" . }}
-{{ partial "menu.html" . }}
+{{ partial "lsmenu.html" (cond .IsNode . .CurrentSection) }}
+
+
+
+ {{ if .IsNode }}
+ sommaire .
+ {{ else }}
+ cat {{ .LinkTitle }}
+ {{ end }}
+
+
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
diff --git a/layouts/_partials/lsline.html b/layouts/_partials/lsline.html
new file mode 100644
index 0000000..9c8b0c2
--- /dev/null
+++ b/layouts/_partials/lsline.html
@@ -0,0 +1,42 @@
+{{ $page := .page }}
+
+ {{ if not $page.IsNode }}
+ -rw-r--r--
+ {{ else }}
+ drwxr-xr-x
+ {{ end }}
+
+
+ {{ if $page.IsNode }}{{ len $page.Pages }}{{ else }}1{{ end }}
+
+{{ $page.Site.Params.owner }}
+{{ $page.Site.Params.group }}
+
+ {{/* La taille d'un répertoire est 4Kio. */}}
+ {{ if $page.IsNode }}4096{{ else }}{{ $page.Len }}{{ end }}
+
+{{ with (or $page.PublishDate $page.Lastmod) }}
+ {{ .Day }}
+ {{ .Format "Jan" }}
+
+ {{ if eq .Year time.Now.Year }}
+ {{ . | time.Format ":time_short" }}
+ {{ else }}
+ {{ .Year }}
+ {{ end }}
+
+{{ end }}
+
+ {{ or .linkTitle $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
new file mode 100644
index 0000000..793c4c2
--- /dev/null
+++ b/layouts/_partials/lsmenu.html
@@ -0,0 +1,43 @@
+{{ $page := . }}
+
+
+
+{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}