Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitalk 样式代码语法错误 expected "}", got ";" #36

Closed
attson opened this issue Jan 1, 2023 · 2 comments
Closed

Gitalk 样式代码语法错误 expected "}", got ";" #36

attson opened this issue Jan 1, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@attson
Copy link

attson commented Jan 1, 2023

"dependencies": {
    "hexo": "^6.3.0",
    "hexo-asset-img": "^1.0.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^3.0.0",
    "hexo-generator-searchdb": "^1.4.1",
    "hexo-generator-tag": "^2.0.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-marked": "^6.0.0",
    "hexo-renderer-stylus": "^2.1.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-redefine": "^0.4.5"
  }
$ hexo -v
INFO  Validating config
hexo: 6.3.0
hexo-cli: 4.3.0
os: darwin 20.6.0 11.7.1

node: 18.12.1
v8: 10.2.154.15-node.12
uv: 1.43.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.18.1
modules: 108
nghttp2: 1.47.0
napi: 8
llhttp: 6.0.10
openssl: 3.0.7+quic
cldr: 41.0
icu: 71.1
tz: 2022b
unicode: 14.0
ngtcp2: 0.8.1
nghttp3: 0.7.0

_config.redefine.yml

comment:
  enable: true
  use: gitalk # values: waline | gitalk | twikoo

  # Waline
  # See: https://waline.js.org/guide/get-started.html
  waline:
    serverUrl:  # Waline server url(vercel) example: https://example.example.com
    lang: zh-CN # Waline language, default: zh-CN. See: https://waline.js.org/guide/client/i18n.html

  # Gitalk
  # See: https://github.com/gitalk/gitalk
  gitalk:
    github_id: # GitHub repo owner
    repository: # Repository name to store issues
    client_id: # GitHub Application Client ID
    client_secret: # GitHub Application Client Secret

运行时语法错误

$ hexo server
INFO  Validating config
INFO  Start processing
INFO  Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
ERROR Asset render failed: css/style.css
ParseError: /Volumes/Project/attson-blog/node_modules/hexo-theme-redefine/source/css/layout/_partial/comment/gitalk.styl:22:26
   18|   &:after {
   19|     content " "
   20|     display table
   21|   }
   22|   &:after { clear both; }
--------------------------------^
   23| }
   24| em($px, $base-size = $gt-size-base)
   25|   u = unit($px)

expected "}", got ";"

@attson attson changed the title Gitalk 样式代码语法错误 Gitalk 样式代码语法错误 expected "}", got ";" Jan 1, 2023
@EvanNotFound
Copy link
Owner

感谢提交PR

@EvanNotFound EvanNotFound added the bug Something isn't working label Jan 1, 2023
@EvanNotFound
Copy link
Owner

已在 v0.4.6 版本修复,请前往 Release 页面 更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants