Skip to content

Commit

Permalink
fix(base): add bullet style with url filter
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Dec 11, 2023
1 parent bcca934 commit 6ad095f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions _includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
.pagefind-ui__form:after {
background: url({{ '/img/search.svg' | url }}) no-repeat 2px center;
}
.list-custom-bullet {
list-style-image: url({{ '/img/bullet.png' | url }});
}
</style>
</head>
<body class="flex flex-col h-full items-center">
Expand Down
6 changes: 3 additions & 3 deletions content/plugin.njk
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
</h3>
<ul class="pl-5">
{% for license in plugin.manifest.licenses %}
<li class="py-1 px-2 list-image-[url(/img/bullet.png)]">
<li class="py-1 px-2 list-custom-bullet">
<a class="text-list link hover:underline align-middle" href="{{ license.url }}">
{{ license.type }}
</a>
Expand All @@ -220,13 +220,13 @@
<ul class="pl-5">
{% if plugin.manifest.dependencies | length %}
{% for dependency, version in plugin.manifest.dependencies %}
<li class="py-1 px-2 list-image-[url(/img/bullet.png)]">
<li class="py-1 px-2 list-custom-bullet">
{{ dependency }}
{{ version }}
</li>
{% endfor %}
{% else %}
<li class="py-1 px-2 list-image-[url(/img/bullet.png)]">
<li class="py-1 px-2 list-custom-bullet">
None
</li>
{% endif %}
Expand Down

0 comments on commit 6ad095f

Please sign in to comment.