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

github.com/qqhann/hugo-primer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiushi Pan <qiu.gits@gmail.com>2018-12-01 00:19:06 +0300
committerQiushi Pan <qiu.gits@gmail.com>2018-12-01 00:19:06 +0300
commit85f25b75d73bb0a6ef5f3f8b20c711ec01b583ea (patch)
tree8dd00f35533d383221e3cd9d53ad0fef3a1425ae
parent6507cf9f48643a15a62891958a682d703166dc53 (diff)
Update: prettier terms html
-rw-r--r--layouts/taxonomy/terms.html.html19
1 files changed, 7 insertions, 12 deletions
diff --git a/layouts/taxonomy/terms.html.html b/layouts/taxonomy/terms.html.html
index 626f745..8bca358 100644
--- a/layouts/taxonomy/terms.html.html
+++ b/layouts/taxonomy/terms.html.html
@@ -13,20 +13,15 @@
{{ range .Paginator.Pages }}
<div class="rounded-2 box-shadow-medium px-3 pb-2 pt-2 mb-2">
<!-- single page card -->
- <div class="Subhead mb-2">
- <div class="Subhead-description">
- aaa
- <a href="{{ .URL }}">
- <div class="h2 mt-1 mb-1 link-gray-dark">{{ .Title }}</div>
- </a>
- <div class="float-md-right">
- <span>{{ .Date.Format "2006-01-01" }}</span>
- </div>
- </div>
+ <div class="mb-2">
+ <a href="{{ .URL }}" class="link-gray-dark"><span class="h2">{{ .Title }}</span></a>
+ <span class="text-right Counter Counter--gray">{{ .Pages | len }}</span>
</div>
<div class="text-gray">
- <!-- summary -->
- {{ .Summary }}
+ {{ range first 10 .Pages }}
+ <a class="btn btn-transparent bg-blue-light link-gray mb-2" href="{{ .URL }}" role="button">
+ {{ .Title }}</a>
+ {{ end }}
</div>
</div>
{{ end }}