Remove the interstitial .tag__value__list-item

Just .tag__list-item is enough.
This commit is contained in:
Eryn Wells 2024-11-24 10:19:26 -08:00
parent e8daeda08b
commit d81f2a107c
2 changed files with 5 additions and 3 deletions

View file

@ -37,12 +37,12 @@
padding-inline-start: 0; padding-inline-start: 0;
} }
.tag__value__list-item { .tag__list-item {
padding-inline-start: 0; padding-inline-start: 0;
white-space: nowrap; white-space: nowrap;
} }
.tag__value__list-item:not(:first-child)::before { .tag__list-item:not(:first-child)::before {
color: var(--text-color-secondary); color: var(--text-color-secondary);
content: ":"; content: ":";
margin-inline-end: var(--spacing); margin-inline-end: var(--spacing);

View file

@ -16,7 +16,9 @@
<div class="tag"> <div class="tag">
<span class="tag__name">{{ $name }}</span> <span class="tag__name">{{ $name }}</span>
<ul class="tag__value--list" data-name="{{ $name }}"> <ul class="tag__value--list" data-name="{{ $name }}">
{{ range . }}<li class="tag__value__list-item"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>{{ end }} {{ range . -}}
<li class="tag__list-item"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end -}}
</ul> </ul>
</div> </div>
{{ end }} {{ end }}