Hello Oli,
This is explained in this tutorial [1]. It is useful to read the
previous tutorials as well, if you haven't done so yet [2].
[1]:
http://jaspervdj.be/hakyll/tutorials/04-compilers.html#producing-a-list-of-items
[2]:
http://jaspervdj.be/hakyll/tutorials.html
Hope this helps,
Peace,
Jasper
On Mon, Apr 1, 2013 at 6:15 PM, <
ozz...@gmail.com> wrote:
> As a newcomer to Haykll I was wondering if someone could explain how to do
> this using Haykll 4?
>
> Looks like this thread so far has dealt with Haykll 3.x
>
> Thanks!
>
> Oli
>
>
> On Wednesday, September 19, 2012 6:50:19 PM UTC+1, Nick Charlton wrote:
>>
>> Hi,
>>
>> I'm trying to present the most-recent 3 articles on index.html. I can
>> figure out how to get a list of titles and links, but not the article body.
>>
>> Ideally, I'd also reuse the post template (templates/post.html), as it'd
>> be exactly the same (rather than using the content of postitem.html, etc.)
>>
>> I've seen stuff like:
>>
>> >>> setFieldPageList (take 3 . recentFirst) "templates/postitem.html"
>> "posts" "posts/*"
>>
>> Which has provided me with a list of the more recent three. But, I'm not
>> sure you then get the body of the post, inside the template.
>>
>> What's the best way to go about doing that?
>>
>> Thanks,
>>
>> Nick.
>
> --
> 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+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.