mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-21 15:56:29 -05:00
Display tags on list.html
This commit is contained in:
parent
6c75ac5f99
commit
3a954f9c96
3 changed files with 29 additions and 1 deletions
|
@ -154,6 +154,26 @@ nav li {
|
|||
background-color: #dddfdf;
|
||||
}
|
||||
|
||||
#tags ul {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
padding: 0;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#tags li {
|
||||
height: 24px;
|
||||
margin: 5px;
|
||||
padding: 0 5px;
|
||||
background-color: #dddfdf;
|
||||
border-radius: 5px;
|
||||
font-size: 14px;
|
||||
/* text-decoration: none; */
|
||||
}
|
||||
|
||||
#contentsList {
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ hasCJKLanguage = true
|
|||
# googleAnalytics = "{your tracking code}"
|
||||
|
||||
[taxonomies]
|
||||
series = "series"
|
||||
tags = "tags"
|
||||
|
||||
[params]
|
||||
author = "Your Name"
|
||||
|
|
|
@ -7,6 +7,14 @@
|
|||
</div>
|
||||
<!-- search results -->
|
||||
<div id="searchResults"></div>
|
||||
<!-- tags -->
|
||||
<div id="tags">
|
||||
<ul>
|
||||
{{ range .Site.Taxonomies.tags.ByCount }}
|
||||
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}({{ .Count }})</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<!-- contents -->
|
||||
<div id="contentsList">
|
||||
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
|
||||
|
|
Loading…
Reference in a new issue