mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-10 14:29:43 +00:00
![Simon Huber](/assets/img/avatar_default.png)
* add whitespace trim to pagetemplate * add whitespace trim to story pagetemplate * add whitespace trim to sidebar pagetemplate
30 lines
641 B
Plaintext
30 lines
641 B
Plaintext
title: $:/core/ui/PageTemplate/sidebar
|
|
tags: $:/tags/PageTemplate
|
|
|
|
\whitespace trim
|
|
\define config-title()
|
|
$:/config/SideBarSegments/Visibility/$(listItem)$
|
|
\end
|
|
|
|
<$scrollable fallthrough="no" class="tc-sidebar-scrollable">
|
|
|
|
<div class="tc-sidebar-header">
|
|
|
|
<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes" retain="yes" animate="yes">
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">
|
|
|
|
<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div">
|
|
|
|
<$transclude tiddler=<<listItem>> mode="block"/>
|
|
|
|
</$reveal>
|
|
|
|
</$list>
|
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
</$scrollable>
|