Changeset 1162
- Timestamp:
- 11/06/07 02:06:38 (6 years ago)
- Location:
- lang/haskell/blosxkel
- Files:
-
- 2 modified
-
blosxkel.hs (modified) (2 diffs)
-
story.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/haskell/blosxkel/blosxkel.hs
r1161 r1162 91 91 } 92 92 93 strftime = formatCalendarTime defaultTimeLocale 94 strfctime format ct = strftime format (toUTCTime ct) 93 95 94 96 filterByPathInfo :: String -> [Entry] -> [Entry] 95 97 filterByPathInfo pathinfo entries 96 98 | length spath == 2 && 97 all isDigit (spath !! 1) = filter (\e -> ( formatCalendarTime defaultTimeLocale "/%Y" (toUTCTime (time e))) == joinPath spath) entries99 all isDigit (spath !! 1) = filter (\e -> (strfctime "/%Y" (time e)) == joinPath spath) entries 98 100 | length spath == 3 && 99 all isDigit (spath !! 1) = filter (\e -> ( formatCalendarTime defaultTimeLocale "/%Y/%m" (toUTCTime (time e))) == joinPath spath) entries101 all isDigit (spath !! 1) = filter (\e -> (strfctime "/%Y/%m" (time e)) == joinPath spath) entries 100 102 | length spath == 4 && 101 all isDigit (spath !! 1) = filter (\e -> ( formatCalendarTime defaultTimeLocale "/%Y/%m/%d" (toUTCTime (time e))) == joinPath spath) entries103 all isDigit (spath !! 1) = filter (\e -> (strfctime "/%Y/%m/%d" (time e)) == joinPath spath) entries 102 104 | otherwise = filter (\e -> isPrefixOf (joinPath spath) (path e)) entries 103 105 where … … 114 116 [("title" , title e), 115 117 ("body" , concat (body e)), 116 ("time" , formatCalendarTime defaultTimeLocale "%Y-%m-%d %H:%M:%S" (toUTCTime (time e))),117 ("yr" , formatCalendarTime defaultTimeLocale "%Y" (toUTCTime (time e))),118 ("mo" , formatCalendarTime defaultTimeLocale "%b" (toUTCTime (time e))),119 ("mo_num" , formatCalendarTime defaultTimeLocale "%m" (toUTCTime (time e))),120 ("da" , formatCalendarTime defaultTimeLocale "%d" (toUTCTime (time e))),121 ("dw" , formatCalendarTime defaultTimeLocale "%a" (toUTCTime (time e))),122 ("hr" , formatCalendarTime defaultTimeLocale "%H" (toUTCTime (time e))),123 ("min" , formatCalendarTime defaultTimeLocale "%M" (toUTCTime (time e))),124 ("hr12" , formatCalendarTime defaultTimeLocale "%I" (toUTCTime (time e))),125 ("ampm" , formatCalendarTime defaultTimeLocale "%p" (toUTCTime (time e))),126 ("ti" , formatCalendarTime defaultTimeLocale "%X" (toUTCTime (time e))),118 ("time" , strfctime "%Y-%m-%d %H:%M:%S" (time e)), 119 ("yr" , strfctime "%Y" (time e)), 120 ("mo" , strfctime "%b" (time e)), 121 ("mo_num" , strfctime "%m" (time e)), 122 ("da" , strfctime "%d" (time e)), 123 ("dw" , strfctime "%a" (time e)), 124 ("hr" , strfctime "%H" (time e)), 125 ("min" , strfctime "%M" (time e)), 126 ("hr12" , strfctime "%I" (time e)), 127 ("ampm" , strfctime "%p" (time e)), 128 ("ti" , strfctime "%X" (time e)), 127 129 ("fn" , path e), 128 130 ("path" , path e)]) -
lang/haskell/blosxkel/story.html
r1160 r1162 1 1 <div class="hentry"> 2 <h3 title="entry-title"> $title</h3>2 <h3 title="entry-title"><a href="$home$path" rel="bookmark">$title</a></h3> 3 3 <div class="entry-content"> 4 4 $body
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)