hugo-fixit / FixIt

🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://fixit.lruihao.cn
MIT License
772 stars 107 forks source link

Error: Error building site: TOCSS: failed to transform "css/style.scss" (text/x-scss): "D:/shekharverma/themes/FixIt/assets/css/_core/_common.scss:58:23": Undefined variable: "$orders".[BUG] Some problem ... #281

Closed shekhuverma closed 1 year ago

shekhuverma commented 1 year ago

Describe the bug 描述你遇到的错误

I Updated to latest version of your theme but got this error when running command "hugo server" I commented

@each $key, $value in $orders {
  .order-#{$key} {
    order: #{$value} !important;
  }
}

in file /themes/FixIt/assets/css/_core/_common.scss and it worked

Expected behavior 期待的行为

Hugo server will be able to run without any error

Screenshots 屏幕截图

image

Build Environment 构建环境

Preview Environment 预览环境

No response

Additional Information 补充信息

No response

Lruihao commented 1 year ago

Please check if this file is included in your project: assets/css/_partials/_maps/_utilities.scss. Or could you show me your project source code?

shekhuverma commented 1 year ago

Yes , the file is their in the source code. But its still showing this error

Lruihao commented 1 year ago

Yes , the file is their in the source code. But its still showing this error

I'm sorry:(, I can't reproduce this bug.

shekhuverma commented 1 year ago

image This is the error i'm getting now But the same config file and contents folder is working on the older version of FixIt theme. Can you please help me with fixing this issue

Lruihao commented 1 year ago

if your using FixIt version >=v0.2.17, you should change the parameter footer.siteTime of your config as below:

    [params.footer.siteTime]
      enable = false
      animate = true
      icon = "fa-solid fa-heartbeat"
      pre = ""
      value = "" # e.g. "2021-12-18T16:15:22+08:00"
shekhuverma commented 1 year ago

It fixed the footer related error but the orignal issue remains the same. image

shekhuverma commented 1 year ago

The issue was due to my custom CSS. It was confilicting with the same. It's resolved now Thankyou