diff --git a/zds/tutorialv2/publication_utils.py b/zds/tutorialv2/publication_utils.py index 3fb0aaf7e8..81608d21b2 100644 --- a/zds/tutorialv2/publication_utils.py +++ b/zds/tutorialv2/publication_utils.py @@ -11,6 +11,7 @@ import requests from django.core.exceptions import ObjectDoesNotExist +from django.template.defaultfilters import date from django.template.loader import render_to_string from django.utils import translation from django.utils.translation import gettext_lazy as _ @@ -414,6 +415,7 @@ def publish(self, md_file_path, base_name, **kwargs): images_download_dir=str(base_directory / "images"), local_url_to_local_path=["/", replacement_image_url], heading_shift=-1, + date=date(published_content_entity.last_publication_date, "l d F Y"), ) if content == "" and messages: raise FailureDuringPublication(f"Markdown was not parsed due to {messages}") diff --git a/zmd/package.json b/zmd/package.json index da4248b18d..90d4008a10 100644 --- a/zmd/package.json +++ b/zmd/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "zmarkdown": "11.0.2" + "zmarkdown": "11.3.0" }, "engines": { "node": ">=12.0.0"