mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge 3d41e85b7e into fa1d4d937c
This commit is contained in:
commit
40e60a1d68
2 changed files with 4 additions and 0 deletions
|
|
@ -230,6 +230,8 @@ Variable Description
|
|||
============= ===================================================
|
||||
article The article object to be displayed
|
||||
category The name of the category for the current article
|
||||
mdate The article modification date and time as it
|
||||
appears in the filesystem
|
||||
============= ===================================================
|
||||
|
||||
Any metadata that you put in the header of the article source file
|
||||
|
|
|
|||
|
|
@ -632,6 +632,8 @@ def path_metadata(full_path, source_path, settings=None):
|
|||
os.stat(full_path).st_mtime)
|
||||
metadata.update(settings.get('EXTRA_PATH_METADATA', {}).get(
|
||||
source_path, {}))
|
||||
metadata['mdate'] = SafeDatetime.fromtimestamp(
|
||||
os.stat(full_path).st_mtime)
|
||||
return metadata
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue