Skip to content

Commit 6ad095f

Browse files
committed
fix(base): add bullet style with url filter
1 parent bcca934 commit 6ad095f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

_includes/layouts/base.njk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
.pagefind-ui__form:after {
2424
background: url({{ '/img/search.svg' | url }}) no-repeat 2px center;
2525
}
26+
.list-custom-bullet {
27+
list-style-image: url({{ '/img/bullet.png' | url }});
28+
}
2629
</style>
2730
</head>
2831
<body class="flex flex-col h-full items-center">

content/plugin.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
</h3>
204204
<ul class="pl-5">
205205
{% for license in plugin.manifest.licenses %}
206-
<li class="py-1 px-2 list-image-[url(/img/bullet.png)]">
206+
<li class="py-1 px-2 list-custom-bullet">
207207
<a class="text-list link hover:underline align-middle" href="{{ license.url }}">
208208
{{ license.type }}
209209
</a>
@@ -220,13 +220,13 @@
220220
<ul class="pl-5">
221221
{% if plugin.manifest.dependencies | length %}
222222
{% for dependency, version in plugin.manifest.dependencies %}
223-
<li class="py-1 px-2 list-image-[url(/img/bullet.png)]">
223+
<li class="py-1 px-2 list-custom-bullet">
224224
{{ dependency }}
225225
{{ version }}
226226
</li>
227227
{% endfor %}
228228
{% else %}
229-
<li class="py-1 px-2 list-image-[url(/img/bullet.png)]">
229+
<li class="py-1 px-2 list-custom-bullet">
230230
None
231231
</li>
232232
{% endif %}

0 commit comments

Comments
 (0)