on master help sign in
renderDateField does not exist
0c2b429Simonas Kazlauskas
src/Hakyll/Web/Template/Context.hs+1−6
@@ -139,11 +139,6 @@ titleField key = mapContext takeBaseName $ pathField key
139-- @folder/yyyy-mm-dd-title.extension@ format (the convention for pages)
139-- @folder/yyyy-mm-dd-title.extension@ format (the convention for pages)
140-- and no @published@ metadata field set, this function can render
140-- and no @published@ metadata field set, this function can render
141-- the date.
141-- the date.
142−--
143−-- > renderDateField "date" "%B %e, %Y" "Date unknown"
144−--
145−-- Will render something like @January 32, 2010@.
146−--
147dateField :: String -- ^ Key in which the rendered date should be placed
142dateField :: String -- ^ Key in which the rendered date should be placed
148 -> String -- ^ Format to use on the date
143 -> String -- ^ Format to use on the date
149 -> Context a -- ^ Resulting context
144 -> Context a -- ^ Resulting context
@@ -165,7 +160,7 @@ dateFieldWith locale key format = field key $ \i -> do
165
160
166--------------------------------------------------------------------------------
161--------------------------------------------------------------------------------
167-- | Parser to try to extract and parse the time from the @published@
162-- | Parser to try to extract and parse the time from the @published@
168−-- field or from the filename. See 'renderDateField' for more information.
163+-- field or from the filename. See 'dateField' for more information.
169-- Exported for user convenience.
164-- Exported for user convenience.
170getItemUTC :: MonadMetadata m
165getItemUTC :: MonadMetadata m
171 => TimeLocale -- ^ Output time locale
166 => TimeLocale -- ^ Output time locale