theme-shoka-x / hexo-theme-shokaX

a hexo theme based on shoka
https://docs-hexo.shokax.top
GNU Affero General Public License v3.0
321 stars 43 forks source link

首次部署后查看主页白屏 #178

Closed SekaiMoe closed 11 months ago

SekaiMoe commented 11 months ago

在开始之前......

问题发生位置

Hexo渲染不正确(文字undefine或空白等)

问题描述

首次执行hexo s 时查看12.7.0.0.1:4000时首页出现白屏

复现步骤

1.run: sudo apk add npm nodejs 2.run: npm i -g hexo-cli shokax-cli 3.mkdir blog && cd blog && hexo i 4.SXC install shokaX 5.修改_config.yml切换主题为shokaX 6.run hexo g 7.run hexo s 8.打开浏览器查看127.0.0.1:4000

相关配置

SekaiMoe@localhost ~/tmp> hexo --version                                                                  INFO  Validating config                                                                                   hexo: 7.0.0                                                                                               hexo-cli: 4.0.0                                                                                           os: Linux 4.14.186+ linux arm64                                                                           node: 21.4.0                                                                                              acorn: 8.11.2                                                                                             ada: 2.7.4                                                                                                ares: 1.22.1                                                                                              base64: 0.5.1                                                                                             brotli: 1.1.0                                                                                             cjs_module_lexer: 1.2.2                                                                                   cldr: 44.0                                                                                                icu: 74.1                                                                                                 llhttp: 9.1.3                                                                                             modules: 120                                                                                              napi: 9                                                                                                   nghttp2: 1.58.0                                                                                           openssl: 3.1.4                                                                                            simdutf: 4.0.4                                                                                            tz: 2023c                                                                                                 undici: 5.28.1                                                                                            unicode: 15.1                                                                                             uv: 1.47.0                                                                                                uvwasi: 0.0.19                                                                                            v8: 11.8.172.17-node.17                                                                                   zlib: 1.2.13.1-motley-5daffc7
SekaiMoe@localhost ~/tmp> cat /etc/os-release                                                             NAME="Alpine Linux"                                                                                       ID=alpine                                                                                                 VERSION_ID=3.18.5                                                                                         PRETTY_NAME="Alpine Linux v3.18"                                                                          HOME_URL="https://alpinelinux.org/"                                                                       BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

注意事项

zkz098 commented 11 months ago

Linux需要修改主题名称为shokax而不是shokaX Linux requires changing the theme name to shokax instead of shokaX.

image