It doesn’t matter about the changes that I made. I used this theme for testing purposes and cannot see the ability to use list.amp.html
for AMP output, hence my modified code, that doesn’t modify basic functionality, is irrelevant.
Looking at this I see that somebody go a similar issue which was left without an answer, is that not working by Hugo design or is not working because of the bug.