mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-21 22:42:19 +00:00
style tags archive list
This commit is contained in:
parent
d9d1d905ea
commit
794aacb928
2 changed files with 19 additions and 1 deletions
|
@ -13,14 +13,16 @@
|
||||||
|
|
||||||
{{- if eq .Kind "taxonomy" }}
|
{{- if eq .Kind "taxonomy" }}
|
||||||
{{- if eq .Title "Tags" }}
|
{{- if eq .Title "Tags" }}
|
||||||
|
<div class="tagsArchive">
|
||||||
{{- range $key, $value := .Site.Taxonomies }}
|
{{- range $key, $value := .Site.Taxonomies }}
|
||||||
{{- $slicedTags := ($value.ByCount) }}
|
{{- $slicedTags := ($value.ByCount) }}
|
||||||
{{- range $slicedTags }}
|
{{- range $slicedTags }}
|
||||||
{{- if eq $key "tags"}}
|
{{- if eq $key "tags"}}
|
||||||
[<a href='/{{ $key }}/{{ (replace .Name "#" "%23") | urlize }}/' title="{{ .Name }}">{{ .Name }}</a><sup>{{ .Count }}</sup>]
|
<div><a href='/{{ $key }}/{{ (replace .Name "#" "%23") | urlize }}/' title="{{ .Name }}">{{ .Name }}</a><sup>{{ .Count }}</sup></div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
</div>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- range .Pages }}
|
{{- range .Pages }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a><br>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a><br>
|
||||||
|
|
|
@ -254,3 +254,19 @@ form button {
|
||||||
background-color: var(--off-bg);
|
background-color: var(--off-bg);
|
||||||
color: var(--link);
|
color: var(--link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* tags list styling */
|
||||||
|
.tagsArchive {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
||||||
|
grid-gap: 0.5rem;
|
||||||
|
/* justify-content: center; */
|
||||||
|
margin: 0.5rem 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagsArchive sup {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
margin-left: 0.2rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
Loading…
Reference in a new issue