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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/taxonomy.html')
-rw-r--r--layouts/_default/taxonomy.html33
1 files changed, 17 insertions, 16 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 21511de..367c35a 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -1,21 +1,22 @@
{{ define "title" }}
- <h1 class="bold-title is-1">{{ .Data.Singular | humanize }}: {{ lower .Title | markdownify }}</h1>
+<h1 class="bold-title is-1">{{ .Data.Singular | humanize }}: {{ lower .Title | markdownify }}</h1>
{{ end }}
{{ define "main" }}
- <div class="container">
- <ul>
- {{ range .Pages.ByPublishDate.Reverse }}
- {{ if .Date }}
- <li>
- <a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title | markdownify }}</a>
- </li>
- {{ else }}
- <li>
- <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
- </li>
- {{ end }}
- {{ end }}
- </ul>
- </div>
+<div class="container">
+ <ul>
+ {{ range .Pages.ByPublishDate.Reverse }}
+ {{ if .Date }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }} |
+ {{ .Title | markdownify }}</a>
+ </li>
+ {{ else }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+</div>
{{ end }}