curtiscde / hugo-theme-massively

Massively theme for Hugo static site generator
https://hugo-theme-massively.netlify.app
Other
155 stars 138 forks source link

Loading animation not playing #75

Closed jonkeane closed 4 years ago

jonkeane commented 5 years ago

First of all, great port of this theme. When I was working with this for my own site, I noticed what looks like a small bug that prevents the intro animation from playing:

It looks like https://github.com/curtistimson/hugo-theme-massively/blob/develop/layouts/index.html#L2 and https://github.com/curtistimson/hugo-theme-massively/blob/develop/layouts/_default/single.html#L2 add the class is-loading to the body. However main.js is looking for the class is-preload https://github.com/curtistimson/hugo-theme-massively/blob/develop/static/assets/js/main.js#L113-L118

When I changed the body element to be of class is-preload, I'm seeing the animation like I expect.

curtiscde commented 4 years ago

Fixed as part of Release 5.3.1 (#77)