cerallin / hexo-theme-yuzu Goto Github PK
View Code? Open in Web Editor NEWA simple black/white hexo theme for novel reading.
License: MIT License
A simple black/white hexo theme for novel reading.
License: MIT License
需要提供使用的markdown renderer (e.g. hexo-renderer-marked
) 、测试用例和当前版本。
When using footnotes, the footnote content is wrapping to a new line after the number.
Here's a demo: http://localhost:4000/2023/09/16/cpp-identifiers-with-unicode-char/
感觉在最上面的TOC利用率不是很高(
文章页面侧面空出好大一块,TOC能实现侧边模式吗🥺
在 Firefox 119.0b6 下进行测试,配置为默认配置。
相关配置:
https://paste.o3o.studio/?cf588a6a549020fd#9sRW9cgZMC6G3oyyhhKtdrbz12ioToH1PZGUkEPpeSXv
Created a new Hexo blog and followed the steps in the README.md to install the theme, but it's not displaying correctly. However, the example website in the README.md is displaying properly.
Firefox version: 117.0.1
hexo-theme-yuzu version: v3.2.1
Result of hexo version
:
hexo: 6.3.0
hexo-cli: 4.3.1
os: linux 4.4.0-22621-Microsoft Debian GNU/Linux 11 (bullseye) 11 (bullseye)
node: 18.17.0
acorn: 8.8.2
ada: 2.5.0
ares: 1.19.1
brotli: 1.0.9
cldr: 43.0
icu: 73.1
llhttp: 6.0.11
modules: 108
napi: 9
nghttp2: 1.52.0
nghttp3: 0.7.0
ngtcp2: 0.8.1
openssl: 3.0.9+quic
simdutf: 3.2.12
tz: 2023c
undici: 5.22.1
unicode: 15.0
uv: 1.44.2
uvwasi: 0.0.18
v8: 10.2.154.26-node.26
zlib: 1.2.13.1-motley
Tags首页(即https://host/tags)无法正常生成
hexo new page tags
type: tags
host/tags
,发现本页为空,与其他文章页面并无不同{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "7.0.0"
},
"dependencies": {
"hexo": "^7.0.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-tag": "^2.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
"hexo-renderer-pug": "^3.0.0",
"hexo-renderer-stylus": "^3.0.0",
"hexo-server": "^3.0.0",
"hexo-theme-landscape": "^1.0.0"
}
}
paran3xus@ParaN3xusLaptop:~/test-blog/themes/hexo-theme-yuzu$ git log
commit 35329185fbe1f487ad11ac486d18c1154e4e4a22 (HEAD -> master, origin/master, origin/HEAD)
Author: Cerallin <[email protected]>
Date: Fri Oct 20 08:53:11 2023 +0800
opt: Modify font size of MathJax blocks
从零开始新建的博客,按照README.MD的指示安装了主题并增加了对应的配置,但是在hexo g这一步就开始报错,有好几条是“XXX is not a function”,一条是"cannot coerce content-max-width to unit"。
具体报错信息举例如下,请问是我哪里没有设置对么?
TypeError: D:\hexo\blog\themes\hexo-theme-yuzu\layout\post.pug:1
> 1| | !{ partial('_partial/article', {post: page}) }
2|
3| if theme.toc.enable
4| | !{ partial('_partial/post/toc', {post: page}) }
D:\hexo\blog\themes\hexo-theme-yuzu\layout\_partial\article.pug:13
11|
12| .post-info
> 13| | !{ partial('_partial/post/word-count', {post: post}) }
14| | !{ partial('_partial/post/copyright', {post: post}) }
15|
16| .article-entry(itemprop="articleBody")
D:\hexo\blog\themes\hexo-theme-yuzu\layout\_partial\post\word-count.pug:1
> 1| -
2| const words = word_counter(post.content);
3| const word_count = (function (words) {
4| const { mode } = theme.word_count;
word_counter is not a function
at eval (eval at wrap (D:\hexo\blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:8:15)
at template (eval at wrap (D:\hexo\blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:32:7)
at _View._compiledSync (D:\hexo\blog\node_modules\hexo\dist\theme\view.js:120:32)
at _View.renderSync (D:\hexo\blog\node_modules\hexo\dist\theme\view.js:62:29)
at Object.partial (D:\hexo\blog\node_modules\hexo\dist\plugins\helper\partial.js:27:17)
at eval (eval at wrap (D:\hexo\blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:32:46)
at template (eval at wrap (D:\hexo\blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:59:7)
at _View._compiledSync (D:\hexo\blog\node_modules\hexo\dist\theme\view.js:120:32)
at _View.renderSync (D:\hexo\blog\node_modules\hexo\dist\theme\view.js:62:29)
at Object.partial (D:\hexo\blog\node_modules\hexo\dist\plugins\helper\partial.js:27:17)
at eval (eval at wrap (D:\hexo\blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:8:46)
at template (eval at wrap (D:\hexo\blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:14:7)
at _View._compiled (D:\hexo\blog\node_modules\hexo\dist\theme\view.js:123:67)
at _View.render (D:\hexo\blog\node_modules\hexo\dist\theme\view.js:48:21)
at D:\hexo\blog\node_modules\hexo\dist\hexo\index.js:60:29
at tryCatcher (D:\hexo\blog\node_modules\bluebird\js\release\util.js:16:23)
at D:\hexo\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\hexo\blog\node_modules\hexo\dist\hexo\router.js:43:9)
at Readable.read (node:internal/streams/readable:737:12)
at resume_ (node:internal/streams/readable:1255:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Asset render failed: css/search.css
CoercionError: D:\hexo\blog\themes\hexo-theme-yuzu\source\css\search.styl:17:23
13|
14| .card
15| position: relative
16| width: 60dvw
17| max-width: (2/3 * content-max-width)
-----------------------------^
18| height: 60dvh
19| margin-left: auto
20| margin-right: auto
cannot coerce content-max-width to unit
at ".card" (D:\hexo\blog\themes\hexo-theme-yuzu\source\css\search.styl:15:3)
at ".search-modal" (D:\hexo\blog\themes\hexo-theme-yuzu\source\css\search.styl:2:1)
at Unit.coerce (D:\hexo\blog\node_modules\stylus\lib\nodes\node.js:247:11)
at Unit.coerce (D:\hexo\blog\node_modules\stylus\lib\nodes\unit.js:207:20)
at Unit.operate (D:\hexo\blog\node_modules\stylus\lib\nodes\unit.js:127:22)
at Evaluator.visitBinOp (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:575:30)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\index.js:29:42)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:154:20)
at Evaluator.visitExpression (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:638:28)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\index.js:29:42)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:154:20)
at Evaluator.visitExpression (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:638:28)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\index.js:29:42)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:154:20)
at Evaluator.visitProperty (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:683:24)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\index.js:29:42)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:154:20)
at Evaluator.visitBlock (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:716:41)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\index.js:29:42)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:154:20)
at Evaluator.visitGroup (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:255:24)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\index.js:29:42)
at Evaluator.visit (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:154:20)
at Evaluator.visitBlock (D:\hexo\blog\node_modules\stylus\lib\visitor\evaluator.js:716:41)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.