[clckwrks-theme-clckwrks: add support for Home Jeremy Shaw **20121126201438 Ignore-this: 4c88f1e4c2410722359b52923ae62ca5 ] hunk ./clckwrks-theme-clckwrks/Theme.hs 27 - hunk ./clckwrks-theme-clckwrks/Theme.hs 28 + do pid <- XMLGenT $ getPageId + case pid of + (PageId 1) -> home ttl hdr bdy + _ -> standardTemplate ttl hdr bdy + +standardTemplate :: ( EmbedAsChild (ClckT ClckURL (ServerPartT IO)) headers + , EmbedAsChild (ClckT ClckURL (ServerPartT IO)) body + ) => + Text + -> headers + -> body + -> XMLGenT (ClckT ClckURL (ServerPartT IO)) XML +standardTemplate ttl hdr bdy = hunk ./clckwrks-theme-clckwrks/Theme.hs 44 - - +-- +-- hunk ./clckwrks-theme-clckwrks/Theme.hs 67 -
-
+--
+--
hunk ./clckwrks-theme-clckwrks/Theme.hs 72 -
-
+--
+--
hunk ./clckwrks-theme-clckwrks/Theme.hs 78 +------------------------------------------------------------------------------ +-- blog +------------------------------------------------------------------------------ + hunk ./clckwrks-theme-clckwrks/Theme.hs 108 + +------------------------------------------------------------------------------ +-- home +------------------------------------------------------------------------------ + +summaryBox :: PageId -> String -> String -> GenXML (Clck ClckURL) +summaryBox pid title iconURL = +
+

<% title %>

+-- + <% getPageSummary pid %> +

read more...

+
+ +-- home :: XMLGenT (ClckT ClckURL (ServerPartT IO)) XML +home :: ( EmbedAsChild (ClckT ClckURL (ServerPartT IO)) headers + , EmbedAsChild (ClckT ClckURL (ServerPartT IO)) body + ) => + Text + -> headers + -> body + -> XMLGenT (ClckT ClckURL (ServerPartT IO)) XML +home ttl hdr bdy = + standardTemplate "clckwrks.com" hdr $ +
+ +
+

clckwrks

+{- + +-} +
+--

runs smoothly and invisibly - Katherine Durkes

+

An open-source CMS you can trust, built with the dexterity of Haskell.

+
+ + <% bdy %> + +
+ <% summaryBox (PageId 8) "Why?" "philosophy-icon.png" %> + <% summaryBox (PageId 3) "Get Started" "7-icon.png" %> + <% summaryBox (PageId 2) "Get Involved" "8-icon.png" %> +
+ +
+ +