Folkert de Vries
2016-08-31 21:25:06 UTC
Hi,
I'm trying to generate teasers from .tex files. I've tried to use teaserFieldWithSeparator
with no luck.
I've even inlined that function, to try and inspect it with Debug.trace,
but the closure (the "\item -> do ..." part in the function below) does not
seem to even get evaluated. Teasers for .md files are generated just fine.
Is there something about .tex files that makes
the teasers not work?
teaserFieldWithSeparator :: String -- ^ Separator to use -> String -- ^ Key to use -> Snapshot -- ^ Snapshot to load -> Context String -- ^ Resulting contextteaserFieldWithSeparator separator key snapshot = field key $ \item -> do body <- itemBody <$> loadSnapshot (itemIdentifier item) snapshot case needlePrefix separator body of Nothing -> fail $ "Hakyll.Web.Template.Context: no teaser defined for " ++ show (itemIdentifier item) Just t -> return t
Thanks,
Folkert
I'm trying to generate teasers from .tex files. I've tried to use teaserFieldWithSeparator
with no luck.
I've even inlined that function, to try and inspect it with Debug.trace,
but the closure (the "\item -> do ..." part in the function below) does not
seem to even get evaluated. Teasers for .md files are generated just fine.
Is there something about .tex files that makes
the teasers not work?
teaserFieldWithSeparator :: String -- ^ Separator to use -> String -- ^ Key to use -> Snapshot -- ^ Snapshot to load -> Context String -- ^ Resulting contextteaserFieldWithSeparator separator key snapshot = field key $ \item -> do body <- itemBody <$> loadSnapshot (itemIdentifier item) snapshot case needlePrefix separator body of Nothing -> fail $ "Hakyll.Web.Template.Context: no teaser defined for " ++ show (itemIdentifier item) Just t -> return t
Thanks,
Folkert
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.