diff --git a/assets/style/main.scss b/assets/style/main.scss index 6ea11e4..e4a618a 100644 --- a/assets/style/main.scss +++ b/assets/style/main.scss @@ -114,6 +114,17 @@ a:active { color: $lightgreen; } +/* Couleur différente pour les répertoire dans le menu ls */ +.lsresult li.directory { + a:link { + color: $blue; + } + + a:visited { + color: $lightblue + } + } + // Colorisation du code en ligne. code:not([class]) { color: $green; diff --git a/hugo.yaml b/hugo.yaml index 3543120..808e60c 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -17,8 +17,6 @@ frontmatter: - :default params: - owner: alexis - group: alexis pagination: pagerSize: 15 diff --git a/layouts/_partials/lsline.html b/layouts/_partials/lsline.html index 930ad0f..12ea8a7 100644 --- a/layouts/_partials/lsline.html +++ b/layouts/_partials/lsline.html @@ -4,13 +4,24 @@ - - {{ with (or $page.PublishDate $page.Lastmod) }} @@ -30,7 +41,9 @@ aria-current="page" {{ end }} href="{{ $page.RelPermalink }}" - title="{{ $page.Title }}">{{ or .linkTitle (print - $page.File.BaseFileName "." $page.File.Ext) $page.LinkTitle }} + title="{{ $page.Title }}" + > + {{ or .linkTitle (print $page.File.BaseFileName "." $page.File.Ext) $page.LinkTitle }}{{ cond (and $page.IsNode (not .forceFile)) "/" "" }} + {{/* 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 565000a..bb51148 100644 --- a/layouts/_partials/lsmenu.html +++ b/layouts/_partials/lsmenu.html @@ -1,8 +1,8 @@ {{ $page := . }}