Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marcanuy/simpleit-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Canina <me@marcanuy.com>2020-02-12 04:18:03 +0300
committerMarcelo Canina <me@marcanuy.com>2020-02-12 04:18:03 +0300
commit3a1d5b03fe1c0835e8ef0d95d3e81261161459ef (patch)
tree58a294e6bc2f76cbfd7e9afead161145d1107587
parent36843b064038bbc26ef0fb5119091ac28d1adcec (diff)
add date to treeitemslisting
-rw-r--r--layouts/partials/sections-tree.html4
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>