~hokiegeek/tw5-card-grid-links

c9c23fce90d24d973fe8b6fa4e8a0b2506611c99 — HokieGeek 1 year, 7 months ago b983a5f 1.3.0
adds support for emptyMessage
2 files changed, 4 insertions(+), 4 deletions(-)

M macro.tid
M plugin.info
M macro.tid => macro.tid +3 -3
@@ 1,4 1,4 @@
modified: 20221005124322000
modified: 20221203005705000
created: 20220917051220000
creator: hokiegeek
tags: $:/tags/Macro


@@ 9,10 9,10 @@ title: $:/plugins/hokiegeek/card-grid-links/macro
 grid-template-columns: repeat(auto-fit, minmax($(min-card-width)$, 1fr));
\end

\define card-grid-links(filter, template:"$:/plugins/hokiegeek/card-grid-links/default-card-template", min-card-width:330px)
\define card-grid-links(filter, template:"$:/plugins/hokiegeek/card-grid-links/default-card-template", min-card-width:330px, emptyMessage:"")
<$let min-card-width=$min-card-width$>
<div class="card-grid-links cards" style=<<card-grid-links-style>>>
<$list filter=<<__filter__>> template=<<__template__>> />
<$list filter=<<__filter__>> template=<<__template__>> emptyMessage=<<__emptyMessage__>> />
</div>
</$let>
\end

M plugin.info => plugin.info +1 -1
@@ 2,7 2,7 @@
    "title": "$:/plugins/hokiegeek/card-grid-links",
    "description": "Create a CSS grid of cards based on the given filter",
    "author": "hokiegeek",
    "version": "1.2.0",
    "version": "1.3.0",
    "core-version": ">=5.1.17",
    "source": "https://git.sr.ht/~hokiegeek/tw5-card-grid-links",
    "plugin-type": "plugin",