diff --git a/zds/tutorialv2/publication_utils.py b/zds/tutorialv2/publication_utils.py index 3f9eaff042..c609ae3165 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 _ @@ -408,6 +409,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..5df14171e2 100644 --- a/zmd/package.json +++ b/zmd/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "zmarkdown": "11.0.2" + "zmarkdown": "11.1.0" }, "engines": { "node": ">=12.0.0"