eidolon/templates/tagMedia.hamlet
2017-10-21 21:18:59 +02:00

13 lines
377 B
Text
Executable file

$newline always
<div .subheader .item>
<h1>Tag #{tag}
$if null media
<p>
There are no media tagged with #{tag}
$forall (Entity mId m) <- media
<div .item>
<a href=@{MediumR mId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb m) []} title=#{mediumTitle m}>
<figcapion>#{mediumTitle m}