抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

一方の笔记本

The only source of knowledge is experience.

本页主要记录网页的建设与维护的过程,并分享一些经验。

2021年9月28日

网页出现乱码问题,经查证是编码问题,查找资料后在对 WinSCP 的登陆设置与登陆后的编辑设置中进行修改后问题解决。

要使用 Markdown 进行公式编辑就需要在每篇博客的头部加上如下代码。

1
mathjax: true

最终得到的效果为:\(e^{i\pi}+1=0\)

以上内容为 Volantis-4.3.1 中的配置方式,事实上,在 Volantis-5.7.6 中,配置方式如下。

1
2
plugins:
- mathjax

2021年9月29日

经大佬的提示,我将网站中的图片进行压缩,转为 webp 格式。

2021年11月9日

经过查找资料后,我将网站的代码字体更换为 Fira Code,实际上流程很简单。

在腾讯云服务器的 Ubuntu 系统中使用如下命令安装 Fira Code 字体。

1
sudo apt install fonts-firacode

随后修改 _config.volantis.yml 中的 codefont 之后即可使用字体,如下所示。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# file: _config.volantis.yml
# ...
fontfamily:
codefont:
fontfamily: 'Fira Code'
logofont:
fontfamily: '"Times New Roman", SimSun'
weight: normal
style: normal
bodyfont:
fontfamily: '"Times New Roman", SimSun'
weight: normal
style: normal
# ...

2022年10月19日

观察到博客翻页功能的内容不够美观,于是将 article.ejs 中部分行进行了注释。

1
2
3
4
5
6
7
8
9
<!-- file: blog-root-path/themes/volantis/layout/_partial/article.ejs -->
<!-- ... -->
<-- line: 154, 160 -->
<!--<p class='content'><%- prev.exp %></p>-->
<!-- ... -->
<-- line: 173, 179 -->
<!--<p class='content'>
<%- truncate(strip_html(page.prev.content), {length: 100}) %></p>-->
<!-- ... -->

评论