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

github.com/luizdepra/hugo-coder.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.html31
1 files changed, 10 insertions, 21 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 82722e3..c62f087 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -13,27 +13,16 @@
{{ range .Pages.GroupBy "Section" }}
<h2>{{ .Key | humanize }}</h2>
- {{ if eq .Key "posts" }}
- <ul>
- {{ range .Pages }}
- <li>
- <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
- <a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
- </li>
- {{ end }}
- </ul>
- {{ else }}
- <ul class="card-list">
- {{ range .Pages }}
- <li>
- <div class="card-small">
- <a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
- {{ with .Page.Params.dates }}<p>{{ . }}</p>{{ end }}
- </div>
- </li>
- {{ end }}
- </ul>
- {{ end }}
+ <ul>
+ {{ range .Pages }}
+ <li>
+ {{ with .Date }}
+ <span class="date">{{ .Format ($.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
+ {{ end }}
+ <a class="{{ with not .Date }}nodate{{ end }} title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+ </ul>
{{ end }}
</ul>
</section>