I am using heavily modified to my need Minos theme that is starting it build with list.html
So, reading how things working with hugo I will need to make two files, which one list.html will build standard pages and list.amp.html will go for AMP pages.
default/list.html
default/list.amp.html
But it doesn’t look like hugo is using list.amp.html file, only list.html even for AMP output.
Any advice?
ps. how I know that is not using list.amp.html
Apart from the obvious source page analysis I made (on purpose) a mess in list.amp.html file that shall result in error during build but it doesn’t.
Or is it simply not working with list.html and shall concentrate my efforts on single.amp.html and in config apply AMP only for posts and ignore home?
If yes, is that a bug that on HOME not working list.amp.html as its clearely listed that is shall here.
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.
Thank you.
When list.amp.html placed in layouts/ than is working
Logically thinking that doesn’t make sense, as when list.html is in /layouts/_default than adding different output i.e. AMP, you will think that you need to put this in same place i.e. /layouts/_default but not, it need to be: