mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-06 01:56:20 +00:00
e145376838
Fixes #1061 - thanks @welford
20 lines
586 B
Plaintext
20 lines
586 B
Plaintext
title: $:/core/macros/timeline
|
|
tags: $:/tags/Macro
|
|
|
|
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
|
|
<div class="tc-timeline">
|
|
<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
|
|
<div class="tc-menu-list-item">
|
|
<$view field="$dateField$" format="date" template="$format$"/>
|
|
<$list filter="[sameday{!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
|
|
<div class="tc-menu-list-subitem">
|
|
<$link to={{!!title}}>
|
|
<$view field="title"/>
|
|
</$link>
|
|
</div>
|
|
</$list>
|
|
</div>
|
|
</$list>
|
|
</div>
|
|
\end
|