eidolon/templates/page.hamlet
2016-08-31 21:37:20 +02:00

25 lines
655 B
Text
Executable file

$doctype 5
$if page == 1
<div .item .subheader>
<div class="inner">
<p>
<a href=@{HomeR}>
newer
$else
<div .item .subheader>
<div class="inner">
<p>
<a 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>
<div class="inner">
<p>
<a href=@{PageR (page + 1)}>
older