Skip to content

Cannot customize date format with on article page #552

@crabdancing

Description

@crabdancing

Since I've pinpointed the exact code that causes this, I will skip supplying debugging info.

The code <time itemprop="dateCreated" datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time> on line 118 of article.html hardcodes the date format when displaying an article. I think this should be changed to allow the end user to customize this format via pelicanconf.py, e.g. by adding a BRIEF_DATE_FORMAT option. Thoughts?

Metadata

Metadata

Assignees

Labels

bugWell, it shouldn’t be doing that. Let’s fix it!released

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions