mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
33 lines
925 B
Plaintext
33 lines
925 B
Plaintext
title: $:/_tw_shared/sites
|
||
tags: $:/tags/MenuBar
|
||
caption: [img class=tc-sites-icon [Motovun Jack.svg]] Sites
|
||
is-dropdown: yes
|
||
list-before:
|
||
|
||
\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}!prefix{$:/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>
|