A more generic tag/value component
Write styles and templates for a more generic tag/value component. Use this component for the taxonomy lists, draft tag, and page dates in the summary template.
This commit is contained in:
parent
b51aca950c
commit
edd6eb996b
11 changed files with 123 additions and 58 deletions
|
@ -13,10 +13,10 @@
|
|||
{{- with T $taxonomy (len .) }}
|
||||
{{ $name = . }}
|
||||
{{ end -}}
|
||||
<div class="taxonomy-list">
|
||||
<span class="taxonomy-list__name">{{ $name }}</span>
|
||||
<ul class="taxonomy-list__terms" data-name="{{ $name }}">
|
||||
{{ range . }}<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>{{ end }}
|
||||
<div class="tag">
|
||||
<span class="tag__name">{{ $name }}</span>
|
||||
<ul class="tag__value--list" data-name="{{ $name }}">
|
||||
{{ range . }}<li class="tag__value__list-item"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue