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

gitlab.com/kskarthik/resto-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html30
1 files changed, 19 insertions, 11 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 3ad4bf6..79d31aa 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,13 +1,21 @@
{{define "main"}}
-<h2 class="text-center">{{.Site.Title}} - Blog</h2>
-<br>
-<div class="container">
- {{range .Pages}}
- <div class="container">
- <h5><a href="{{.Permalink}}">{{ .Title }}</a></h5>
- <small class="text-secondary">{{.PublishDate.Format "January 2, 2006"}} | {{.ReadingTime}} minute read</small>
- </div>
- <br>
- {{end}}
-</div>
+<section class="container">
+ <h2 class="text-center">{{.Title}}</h2>
+ {{if eq .Kind "taxonomyTerm"}}
+ {{range $key, $value := .Data.Terms.Alphabetical}}
+ <span class='badge badge-dark'><a class='text-white' href='{{ "tags/" | absURL }}{{ $value.Name | lower }}'>{{ $value.Name }}</a></span>
+ {{end}}
+ {{else}}
+ <div class="container row">
+ {{range .Pages}}
+ <div class="container-fluid col-md-5 m-3">
+ <h5><a href="{{.Permalink}}">{{ .Title }}</a></h5>
+ {{if eq .Section "blog"}}
+ <small class="text-secondary">Published on: {{.PublishDate.Format "January 2, 2006"}} | {{.ReadingTime}} minute read</small>
+ {{end}}
+ </div>
+ {{end}}
+ </div>
+ {{end }}
+</section>
{{end}} \ No newline at end of file