Add favicon to bag listing page

This commit is contained in:
Jeremy Ruston 2024-01-24 20:58:57 +00:00
parent 3ad3e19392
commit 0b9749f3a4
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,16 @@
title: $:/plugins/tiddlywiki/multiwikiserver/templates/get-bags
! Bag <$text text={{{ [<bag-name>]}}}/>
! <$image
source=`/wiki/${ [<bag-name>encodeuricomponent[]] }$/bags/${ [<bag-name>encodeuricomponent[]] }$/tiddlers/%24%3A%2Ffavicon.ico`
class="mws-favicon-small"
width="32px"
>
<$image
source="$:/plugins/multiwikiserver/images/missing-favicon.png"
class="mws-favicon-small"
width="32px"
/>
</$image> Bag <$text text={{{ [<bag-name>]}}}/>
<ul>
<$list filter="[<bag-titles>jsonget[]sort[]]">