ageekymonk / hugo-tracks-theme

This is port of Tracks theme
MIT License
21 stars 21 forks source link

Existing impl returns and displays the index as oppossed to actual... #7

Open mdjaniga opened 6 years ago

mdjaniga commented 6 years ago

Navlinks. This commit replaces the sections.index with the actual navlinks defined in the conf file.

I noticed the demo displays "Home/ 0/ 1/ 2/" instead of the actual Navlinks:

image

I was able to reproduce it on my page. Since I'm lazy I decided create a pull request instead of try to describe what is going on.

There is a side effect related to this commit... Hugo will no longer dynamically create links for new Sections and all sections must be defined in the config file.

Not sure if the side effect is acceptable... check it out.

Thnx, M