Clean up the taxonomy list
Make the name of the taxonomy copyable by putting it in the dom, rather than in the CSS content:.
This commit is contained in:
parent
cd503b1275
commit
f7928c2190
2 changed files with 32 additions and 23 deletions
|
@ -13,9 +13,10 @@
|
|||
{{- with T $taxonomy (len .) }}
|
||||
{{ $name = . }}
|
||||
{{ end -}}
|
||||
<ul class="taxonomy-list" data-name="{{ $name }}">
|
||||
{{ range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<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 }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue