Open rbeeger opened 10 years ago
Hmm I should probably include more examples. In this case, the ordinal date format is customized so that it wraps each part with a span. Since it's really just parsing this through Ruby's string-from-time parser. if you want to achieve the same, you could do something like this:
date_format: "<span class='day'>%d</span>-<span class='month'>%b</span>-<span class='year'>%Y</span>"
I'll update the example to explain this better. Thanks for the push!
The example for date_time_html suggests that whatever format I specify in date_format, this octopress plugin will parse that format and create a html with a correctly classed span for each element.
That isn't the case however. As soon as I define in _octopress.yml
the generated code looks like this
I actually prefer it that way, but others might be surprised by this.