Commit Graph

7 Commits (3477eaf8344f0eeeb4e7c56316d67077eb83094f)

Author SHA1 Message Date
Andreas Renberg (IQAndreas) 408cade21f Rename 'data' to 'date_attributes'
Prevents ambiguity, since there is already a `date` property defined in
the instance.
Andreas Renberg (IQAndreas) 797aeb5074 Call overridden version of `to_liquid` and remove duplicate code
Make sure to call "overidden" method which keeps us nice and compatible
so we don't need to keep up with whatever Jekyll usually does, and make
sure to include it in our overriden method.

I have had it with these monkey-patching methods in this Monday-to-
Friday language!

Add method `liquid_date_attributes`.

Cleanup the Post and Page overrides to be more similar.
richo 5b332f5c95 Whitespace
Frederic Hemberger 4feeecfdef Date format: Remove unnecessary escapement
Frederic Hemberger 142681489f Add custom date format %o for ordinal representation of the day
Frederic Hemberger 987dccee76 Add custom date format to pages, add 'updated' field again
Reverts changes of c2a68cc where I accidentally removed support for 'updated' field, see comments of issue  for details.
Frederic Hemberger c2a68cc2a9 Make post's date output configurable via _config.yml, closes
A new config variable 'date_format' is introduced in _config.yml.
It can either be set to "ordinal" to use the current format or it
can be given a string complying to strftime() format identifiers.