mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Remove dependency on core timeline macro by overriding timeline-title() instead
In application of #1221
This commit is contained in:
parent
d07c45dbca
commit
c15f978ac1
@ -1,26 +0,0 @@
|
||||
created: 20141119224138888
|
||||
modified: 20141203143841166
|
||||
tags: $:/tags/Macro
|
||||
title: $:/core/macros/timeline
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\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}}>
|
||||
<$transclude field="caption">
|
||||
<$view field="fr-title">
|
||||
<$view field="title"/>
|
||||
</$view>
|
||||
</$transclude>
|
||||
</$link>
|
||||
</div>
|
||||
</$list>
|
||||
</div>
|
||||
</$list>
|
||||
</div>
|
||||
\end
|
@ -0,0 +1,11 @@
|
||||
created: 20141212105632762
|
||||
modified: 20141212105822388
|
||||
tags: $:/tags/Macro
|
||||
title: $:/editions/fr-FR/Macros/timeline-title
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define timeline-title()
|
||||
<$view field="fr-title">
|
||||
<$view field="title"/>
|
||||
</$view>
|
||||
\end
|
Loading…
Reference in New Issue
Block a user