posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

Possibility of putting last updated instead of date #174

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi,

I use acrylamid (0.7) here: http://somenxavier.github.io/cepasud/ I want to know if it's possible to put date of last update instead of date in articles?

If not, please consider it a wish.

Thanks,

posativ commented 11 years ago

Yes, you can use Mako to import the datetime module like this:

<%
from datetime import datetime
%>

and in your template, replace entry.date.strftime(...) with datetime.now().strftime(...).

ghost commented 11 years ago

Thanks. I will do as soon as possible I could run acrylamid, because now I'm trouble with master branch ;-)