Skip to content
New issue

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

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

Already on GitHub? # to your account

支持配置「中文网字」列表内的字体配置,是否可行? #227

Open
ZhaoTim opened this issue Jan 10, 2025 · 4 comments
Open

Comments

@ZhaoTim
Copy link
Contributor

ZhaoTim commented Jan 10, 2025

中文网字网站有许多免费的网络字体,我想问下能否支持在config.json里面增加font字段,来直接配置字体?

是否觉得没必要呢?如果有必要的话,我能否进行代码提交呢?

@Meekdai
Copy link
Owner

Meekdai commented Jan 13, 2025

用自定义css功能就能实现自定义字体了啊。

@ZhaoTim
Copy link
Contributor Author

ZhaoTim commented Jan 13, 2025

好吧,主要是每次都要复制引入字体文件的代码,有点麻烦🤦‍♂️ 我想象的是我想设置某个字体,直接就复制字体名称,然后在 config .json 的配置项里面直接改 font 字段的值,就好了。不过算了,因为我发现貌似实现不了。

@JaChin-Hu
Copy link

应该可以吧,先在 gmeek.py/ dconfig 添加font 字段, 再从 base.html 引入<link rel='stylesheet' href='https://chinese-fonts-cdn.deno.dev/packages/syst/dist/‘+ {{ blogBase['font'] }} +’/result.css' /> 没实际写过,不知道语法对不对

@ZhaoTim
Copy link
Contributor Author

ZhaoTim commented Feb 24, 2025

应该可以吧,先在 gmeek.py/ dconfig 添加font 字段, 再从 base.html 引入<link rel='stylesheet' href='https://chinese-fonts-cdn.deno.dev/packages/syst/dist/‘+ {{ blogBase['font'] }} +’/result.css' /> 没实际写过,不知道语法对不对

对的,就是像你说的这样!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants