mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-28 23:10:46 +00:00
Exclude drafts from table of contents macros
This commit is contained in:
parent
335c470797
commit
5093cdc860
@ -3,7 +3,7 @@ tags: $:/tags/Macro
|
|||||||
|
|
||||||
\define toc-body(rootTag,tag,sort:"")
|
\define toc-body(rootTag,tag,sort:"")
|
||||||
<ol class="tc-toc">
|
<ol class="tc-toc">
|
||||||
<$list filter="""[tag[$tag$]$sort$]""">
|
<$list filter="""[tag[$tag$]!has[draft.of]$sort$]""">
|
||||||
<li>
|
<li>
|
||||||
<$list filter="[is[current]toc-link[no]]" emptyMessage="<$link><$view field='caption'><$view field='title'/></$view></$link>">
|
<$list filter="[is[current]toc-link[no]]" emptyMessage="<$link><$view field='caption'><$view field='title'/></$view></$link>">
|
||||||
<$view field="caption">
|
<$view field="caption">
|
||||||
@ -75,7 +75,7 @@ tags: $:/tags/Macro
|
|||||||
|
|
||||||
\define toc-expandable(tag,sort:"")
|
\define toc-expandable(tag,sort:"")
|
||||||
<ol class="tc-toc toc-expandable">
|
<ol class="tc-toc toc-expandable">
|
||||||
<$list filter="[tag[$tag$]$sort$]">
|
<$list filter="[tag[$tag$]!has[draft.of]$sort$]">
|
||||||
<$list filter="[is[current]toc-link[no]]" emptyMessage="<<toc-linked-expandable-body tag:'$tag$' sort:'$sort$'>>">
|
<$list filter="[is[current]toc-link[no]]" emptyMessage="<<toc-linked-expandable-body tag:'$tag$' sort:'$sort$'>>">
|
||||||
<<toc-unlinked-expandable-body tag:"$tag$" sort:"$sort$">>
|
<<toc-unlinked-expandable-body tag:"$tag$" sort:"$sort$">>
|
||||||
</$list>
|
</$list>
|
||||||
@ -140,7 +140,7 @@ tags: $:/tags/Macro
|
|||||||
|
|
||||||
\define toc-selective-expandable(tag,sort:"")
|
\define toc-selective-expandable(tag,sort:"")
|
||||||
<ol class="tc-toc toc-selective-expandable">
|
<ol class="tc-toc toc-selective-expandable">
|
||||||
<$list filter="[tag[$tag$]$sort$]">
|
<$list filter="[tag[$tag$]!has[draft.of]$sort$]">
|
||||||
<$list filter="[is[current]toc-link[no]]" variable="ignore" emptyMessage="<<toc-linked-selective-expandable-body tag:'$tag$' sort:'$sort$'>>">
|
<$list filter="[is[current]toc-link[no]]" variable="ignore" emptyMessage="<<toc-linked-selective-expandable-body tag:'$tag$' sort:'$sort$'>>">
|
||||||
<<toc-unlinked-selective-expandable-body tag:"$tag$" sort:"$sort$">>
|
<<toc-unlinked-selective-expandable-body tag:"$tag$" sort:"$sort$">>
|
||||||
</$list>
|
</$list>
|
||||||
|
Loading…
Reference in New Issue
Block a user