This is an annoying issue I have been trying to deal with for over a week. I have made some custom changes to the theme using page bundle instructions to have list page links inside another link page like;
Link to the Fruits page
-Fruits (list page)
–Red Fruits (list page)
–Yellow Fruits (list page)
Ever since I am having trouble with Hugo rendering the pages. Whenever I start to work on my site to develop it and refresh the page (offline) to see the change i made, hugo is having trouble rendering the list pages correctly. If it renders “Red Fruits” page correctly, it will render “Yellow Fruits” page incorrectly. And sometimes it renders both correctly. This happens no matter in which section of the template I am working on.
But since you have specified layout: “list” in the front matter of your index.md make sure that the respective template single.html template exists under your layouts/list/ folder or remove that front matter parameter and use the default single page template.
This is the page hierarchy that i am trying to accomplish. Therefore, I guess my /plant_protection directory and plant_protection/fungicide directory must be a list page in order to list the items within those directories.
So to say, I will need _index.md in those directories to make them list pages, am I right?
When I put an _index.md into plant_protection/fungicide with the frontmatter below, I cannot see the link on the plant_protection directory (or page) to go to plant_protection/fungucide directory (or page)
Note: I see the fungucide page alright when I reach to it by using typing the address into the address bar of the browser. So the question is that how can i put a link on plant_protection directory (or page) to reach to the fungicide page? That is the reason I used fungicide.md files on the upper directory ( plant_protection ). But it sometimes rendered correctly and sometimes not.