Discussion:
[hakyll] Sorting on modification time
s***@gmail.com
2015-04-06 09:37:29 UTC
Permalink
Is it possible to do? I don't have a clue on where to start..
--
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.
Francesco Ariis
2015-04-06 20:13:30 UTC
Permalink
Post by s***@gmail.com
Is it possible to do? I don't have a clue on where to start..
Can't whip something up now, but there is a `modificationTimeField` [1]
which might be worth investigating (or you could just add a 'modified'
tag to your metadata section and handle that. Seems a bit more laborious
but way more reliable).

[1] http://jaspervdj.be/hakyll/reference/Hakyll-Web-Template-Context.html#v:modificationTimeField
--
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.
Pavel Kretov
2015-04-07 15:47:03 UTC
Permalink
Post by s***@gmail.com
Is it possible to do? I don't have a clue on where to start..
Are you talking about modification date stored by the file system? In
many cases this date does not make a lot of sense as file may have lost its
original date on re-creation. You should either have additional tag in
your post metadata

---
date: 2015-01-01 00:01
modifiled: 2015-02-05 15:21
---

or retrieve this information from the VCS (it seems to be common to
store Hakyll website sources in Git or something like that), which is
much more complex task. And, AFAIK, Git does not preserve original timestaps
on checkout.

――― Pavel Kretov.
--
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.
Loading...