]> git.decadent.org.uk Git - memories.git/blobdiff - templates/frontpage
Show some photos on the front page #11.
[memories.git] / templates / frontpage
index 9bd95766eba306d8e062f70253708713830a4f29..31a9f7c22be598b9db87133ade706c6d7ae353e7 100644 (file)
@@ -1,6 +1,16 @@
 [% INCLUDE header %]
-<h1> Welcome to Memories </h1>
-
+[% PROCESS macros %]
+<table class="frontpagetable" width="100%">
+[% FOR how = ["popular", "interesting", "random"] %]
+<tr><th colspan="4">[%how | ucfirst%] photos</th></tr>
+<tr>
+[% FOR pic = request.$how %]
+    <td align="center"> [% minithumb(pic) %] <br> [%pic.title%] </td>
+[% END %]
+</tr>
+[% END %]
+</table>
+   
 <p>
  Memories is a site where you can upload and share your photos.
 </p>