This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""[OVERVIEW] Pelican plugin to replace “-” with a space in the value of the key “title” articles and pages. | |
[NOTE] Not possible to have expected value of “title” key without plugin: | |
https://stackoverflow.com/q/64058029/5951529 | |
[REQUIRED] “FILENAME_METADATA: (?P<title>.*)” in Pelican settings; | |
this is necessary so as not to add the “title” manually in each article and page. | |
Otherwise error when running “pelican” command on the command line: | |
“could not find information about 'title'”. | |
https://docs.getpelican.com/en/latest/content.html#file-metadata |