gokarna-theme / gokarna-hugo

A minimal opinionated theme for Hugo
https://gokarna-hugo.netlify.app
GNU General Public License v3.0
357 stars 139 forks source link

Fix smooth scrolling not changing URL hash #213

Closed realansgar closed 9 months ago

realansgar commented 9 months ago

Currently, clicking on a link in the table of contents smoothly scrolls the page to the relevant section. For some reason, the URL hash wasn't updated by this though.

Smooth scrolling is currently implemented in JS. Luckily, there is a single CSS property scroll-behavior: smooth, that automatically enables smooth scrolling for all hash links. This PR exchanges the current implementation for this single property.

netlify[bot] commented 9 months ago

Deploy Preview for gokarna-hugo ready!

Name Link
Latest commit b35d64719a54133330bdb1e4c42b386ac8faf9f6
Latest deploy log https://app.netlify.com/sites/gokarna-hugo/deploys/65a6a94f009b5a000812058e
Deploy Preview https://deploy-preview-213--gokarna-hugo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.