mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Addresses #2497
Sets the `modified:` metadata from `date:` if the user asked us to use the filesystem for determining timestamps.
This commit is contained in:
parent
c8639fe547
commit
b1b0d0b0ab
1 changed files with 1 additions and 0 deletions
|
|
@ -685,6 +685,7 @@ def path_metadata(full_path, source_path, settings=None):
|
|||
if settings.get('DEFAULT_DATE', None) == 'fs':
|
||||
metadata['date'] = datetime.datetime.fromtimestamp(
|
||||
os.stat(full_path).st_mtime)
|
||||
metadata['modified'] = metadata['date']
|
||||
|
||||
# Apply EXTRA_PATH_METADATA for the source path and the paths of any
|
||||
# parent directories. Sorting EPM first ensures that the most specific
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue