Fix page not found error when adding a permalink in this format:
```yaml
---
permalink: >
archive/2022/10/20/cherry-picking-commits-is-an-anti-pattern
```
This causes a newline character to be added to the end of the permalink,
and causes the previous code to not be able to match the slug for the
filename based on the `permalink` value within the front matter.