eidolon/templates/page.hamlet
2017-10-21 19:30:01 +02:00

19 lines
551 B
Text
Executable file

$doctype 5
$if page == 1
<div .item .subheader>
<a .pagin href=@{HomeR}>
newer
$else
<div .item .subheader>
<a .pagin href=@{PageR (page - 1)}>
newer
$forall (Entity mediumId medium) <- pageMedia
<div .item>
<a href=@{MediumR mediumId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
<figcaption>#{mediumTitle medium}
$if nextMedia
<div .item .subheader>
<a .pagin href=@{PageR (page + 1)}>
older