reuixiy / hugo-theme-meme

😝 You can’t spell awesome without MemE!
http://reuixiy.github.io/hugo-theme-meme
MIT License
1.02k stars 279 forks source link

Error Building Site After Update #78

Closed AngangGuo closed 4 years ago

AngangGuo commented 4 years ago

After I updated the theme, Hugo can't build the site:

C:\andrew\prj\blog>git submodule update --rebase --remote
remote: Enumerating objects: 436, done.
remote: Counting objects: 100% (436/436), done.
remote: Compressing objects: 100% (199/199), done.
Receiving objects:  67% (293/436)used 379 (delta 167), pack-reused 0R
Receiving objects: 100% (436/436), 530.73 KiB | 2.48 MiB/s, done.
Resolving deltas: 100% (221/221), completed with 52 local objects.
From https://github.com/reuixiy/hugo-theme-meme
   7020dcc..dc0c4ef  master     -> origin/master
First, rewinding head to replay your work on top of it...
Fast-forwarded master to dc0c4ef51e1f135be9bd1534805a2e075f0697c2.
Submodule path 'themes/meme': rebased into 'dc0c4ef51e1f135be9bd1534805a2e075f0697c2'
C:\andrew\prj\blog>hugo server -D
Building sites … ERROR 2020/03/15 22:42:48 Transformation failed: TOCSS: failed to transform "styles/main-rendered.scss" (text/x-scss): SCSS processing failed: file "C:/andrew/prj/blog/themes/meme/assets/scss/layout/_header.scss", line 29, col 21: Undefined variable: "$headerBackground". . Check your Hugo installation; you need the extended version to build SCSS/SASS.
Built in 304 ms
Error: Error building site: logged 1 error(s)

C:\andrew\prj\blog>hugo version
Hugo Static Site Generator v0.67.0/extended windows/amd64 BuildDate: unknown

The same error when using the latest Hugo extended v0.67.1


C:\andrew\prj\blog>hugo server -D
Building sites … Built in 275 ms
Error: Error building site: TOCSS: failed to transform "styles/main-rendered.scss" (text/x-scss): SCSS processing failed: file "C:/andrew/prj/blog/themes/meme/assets/scss/layout/_header.scss", line 29, col 21: Undefined variable: "$headerBackground".

C:\andrew\prj\blog>hugo version
Hugo Static Site Generator v0.67.1/extended windows/amd64 BuildDate: unknown

Please advise.

reuixiy commented 4 years ago

I see.

MemE made some breaking changes recently. So please check the modification history of the configuration file and update related items in config.toml.

Sorry for the inconvenience.

reuixiy commented 4 years ago

Or you can back up your config.toml, then copy the latest version of it, and reconfigure...

AngangGuo commented 4 years ago

Yes, I use the new config.toml and it works great. Thanks.

reuixiy commented 4 years ago

Yep :)