ITADN

Bug in Drupal migration script causing 404s

#181Openmtlynch 创建于 2026-01-07
bug
M
mtlynchcommented
I noticed a 404 on this page: https://www.jeffgeerling.com/blog/testing-ansible-roles-travis-ci-github Looking at the source, I noticed this malformed YAML list: https://github.com/geerlingguy/jeffgeerling-com/blob/8f2f7f066c87d94314da9602978de2c0ebffdaa7/content/blog/2014/05/testing-ansible-roles-travis-ci-github/index.md#L21-L23 I tried deleting the second element, and hugo resumed rendering the page to the right path. There are a bunch of other instances of this: ```bash $ grep -r "^ - " content/ --include="*.md" content/blog/2013/04/push-your-git-repositories/index.md: - /blogs/jeff-geerling/push-your-git-repositories content/blog/2013/04/irig-mic-cast-microphone/index.md: - /review/audio-and-video/irig-mic-cast-microphone content/blog/2013/06/quickly-resetting-local-mysql/index.md: - /blogs/jeff-geerling/quickly-resetting-local-mysql content/blog/2013/02/using-feedburner-sake-control/index.md: - /blogs/jeff-geerling/using-feedburner-sake-control content/blog/2013/01/how-build-a-simple-30-standing/index.md: - /articles/miscellaneous/2012/how-build-a-simple-30-standing ... ``` It looks like a bug in the migration script here: https://github.com/geerlingguy/jeffgeerling-com/commit/2b96593f5efddd9b63cbaf9ffd38dff5859e327b
1 条评论