Try naturalday for published date
This commit is contained in:
parent
70a819951e
commit
6a50c021ce
|
@ -1,6 +1,7 @@
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load humanize %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% with format=book.physical_format pages=book.pages %}
|
{% with format=book.physical_format pages=book.pages %}
|
||||||
|
@ -39,7 +40,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% with date=book.published_date|date:'M j Y' publisher=book.publishers|join:', ' %}
|
{% with date=book.published_date|naturalday publisher=book.publishers|join:', ' %}
|
||||||
{% if date or book.first_published_date %}
|
{% if date or book.first_published_date %}
|
||||||
<meta
|
<meta
|
||||||
itemprop="datePublished"
|
itemprop="datePublished"
|
||||||
|
|
Loading…
Reference in New Issue