Commit Graph
4 Commits
Author SHA1 Message Date
tanner 7ee02b03d1 Include "/" in empty paths
When articles were in the base directory, the string replacement:
`str(full_path).replace(str(base_path) + '/'`
would not match, causing the whole absolute path to be included which
would break the link.

This should now work if the article is in the base directory or in any
subfolder.
2022-04-22 15:34:27 -06:00
tanner bd55a6b66f Make naming a bit more clear 2022-04-22 15:33:13 -06:00
tanner 30670d998e Regenerate paths on each change
This is so we can detect new files without having to restart the Pelican
server. Computers are fast enough anyway.
2022-04-22 15:31:08 -06:00
tanner d3735aa826 Don't iterate over articles twice 2022-04-22 15:29:38 -06:00