Closed jonkeane closed 4 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
is-loading
main.js
is-preload
When I changed the body element to be of class is-preload, I'm seeing the animation like I expect.
Fixed as part of Release 5.3.1 (#77)
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. Howevermain.js
is looking for the classis-preload
https://github.com/curtistimson/hugo-theme-massively/blob/develop/static/assets/js/main.js#L113-L118When I changed the body element to be of class
is-preload
, I'm seeing the animation like I expect.