1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-04 23:39:57 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/_tw_shared/sites.tid
jeremy@jermolene.com c78bff5bb2 Fix sites menu
2022-04-19 16:24:48 +01:00

33 lines
989 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

title: $:/_tw_shared/sites
tags: $:/tags/MenuBar TiddlyWikiSitesMenu
caption: [img class=tc-sites-icon [Motovun Jack.svg]] Sites
is-dropdown: yes
list-after: $:/plugins/tiddlywiki/menubar/items/hamburger
\define link-body()
\whitespace trim
<$image source={{!!icon}} class="tc-sites-menu-icon"/><strong><$transclude field="caption" mode="inline"/></strong><$text text="  "/><$transclude field="description" mode="inline"/>
\end
\define current-link-body()
\whitespace trim
<div class="tc-sites-menu-disabled">
<<link-body>><span class="tc-sites-menu-this-site"><$text text="this site"/></span>
</div>
\end
\whitespace trim
<div class="tc-sites-menu">
<ol>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyWikiSites]]">
<li>
<$list filter="[{!!url}!match{$:/info/url/full}]" emptyMessage=<<current-link-body>> variable="ignore">
<a class="tc-tiddlylink-external" href={{!!url}} rel="noopener noreferrer" target="_blank">
<<link-body>>
</a>
</$list>
</li>
</$list>
</ol>
</div>