diff options
author | Marcelo Canina <me@marcanuy.com> | 2020-02-12 04:18:03 +0300 |
---|---|---|
committer | Marcelo Canina <me@marcanuy.com> | 2020-02-12 04:18:03 +0300 |
commit | 3a1d5b03fe1c0835e8ef0d95d3e81261161459ef (patch) | |
tree | 58a294e6bc2f76cbfd7e9afead161145d1107587 | |
parent | 36843b064038bbc26ef0fb5119091ac28d1adcec (diff) |
add date to treeitemslisting
-rw-r--r-- | layouts/partials/sections-tree.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/sections-tree.html b/layouts/partials/sections-tree.html index 74b4768..f4b8427 100644 --- a/layouts/partials/sections-tree.html +++ b/layouts/partials/sections-tree.html @@ -19,7 +19,7 @@ {{ define "section-tree-nav" }} {{ range .CurrentSection.Sections }} -<li><h5><a href="{{.Permalink}}">{{ .LinkTitle }}</a></h5> </li> +<li><h5><a href="{{.Permalink}}">{{ .LinkTitle }}</a></h5></li> {{ template "current-section_pages" . }} <ul> {{ template "section-tree-nav" . }} @@ -33,7 +33,7 @@ {{ if (eq $.Permalink .Permalink) }} <li>{{ .LinkTitle }}</li> {{ else }} - <li><a href="{{.Permalink}}">{{ .LinkTitle }}</a></li> + <li><a href="{{.Permalink}}">{{ .LinkTitle }}</a><span><small class="mx-1 text-muted">{{.PublishDate.Format "January 2, 2006"}}</small></span></li> {{ end }} {{ end }} </ul> |