theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.09k stars 1.12k forks source link

Contribution: fix hard-coded link to section #664 #665

Closed Blackstareye closed 2 months ago

Blackstareye commented 7 months ago

664 describes it.

https://github.com/theNewDynamic/gohugo-theme-ananke/blob/c086834f0ebfa39b8b6b0cfed010588a6907a91c/layouts/index.html#L13C31-L13C31

At the moment, only the first mainsection will be shown in the index.

I changed it so that the mainsections will be iterated with "range $mainsections". This allows that multiple sections are possible and can be displayed.

netlify[bot] commented 7 months ago

Deploy Preview for gohugo-ananke-theme-demo canceled.

Name Link
Latest commit 2f32889a1b4e832d860b4fc29a55a27cb03158e1
Latest deploy log https://app.netlify.com/sites/gohugo-ananke-theme-demo/deploys/655d865892f0190008231180
regisphilibert commented 7 months ago

@budparr I might need some help on this one.

Blackstareye commented 7 months ago

If you need any help from my side, just mention me :)