Skip to content

[Feature request] Modified setting update on save #30

@Kristinita

Description

@Kristinita

See also similar issue.

1. Request

It would be nice, if you add feature — update value for Modified metadata parameter. It would be nice, if would be possible not only if users run command manually like pelican_update_date command, but value will be changed automatically, when users save their md or rst file.

2. Justification

Pelican documentation:

modified should be last time you updated the article, and defaults to date if not specified. Besides you can show modified in the templates, feed entries in feed readers will be updated automatically when you set modified to the current date after you modified your article.

In metadata we have parameters.

  • Date — time of file create,
  • Modified — time of last edit of file.

Users usually don't need to change Date, but need to change Modified.

3. Desirable behavior

In md or rst file user have Modified parameter, → user save file → Modified parameter change to current data automatically.

4. Examples on other apps

See, how time change in FileHeader package:

FileHeader

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions