Fluid魔改记录

配置

  1. 创建custom文件夹以及 .css.js文件

标签变化

离开界面和处于界面有不同文字。

参考:Hexo&Fluid魔改笔记 - Asteri5m的小破站

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 浏览器搞笑标题
varOriginTitle = document.title;
var titleTime;
document.addEventListener('visibilitychange', function() {
if (document.hidden) {
$('[rel="icon"]').attr('href', "/funny.ico");
document.title = '╭(°A°`)╮ 页面崩溃啦 ~';
clearTimeout(titleTime);
} else {
$('[rel="icon"]').attr('href', "/img/newtubiao.png");
document.title = '(ฅ>ω<*ฅ) 噫又好啦 ~' + OriginTitle;
titleTime = setTimeout(function() {
document.title = OriginTitle;
}, 2000);
}
});

然后将路径添加到custom下就可以了

  1. 配置obsidian中的图片路径
    安装插件custom attachment location,同时设置如下图:

    然后设置文件与链接中的设置:

最近又莫名其妙出现了图片显示不了的问题,匪夷所思,发现root设置自己改掉了。,。,最后重新加上解决了。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: True # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
marked:
prependRoot: true
postAsset: false # 修改为false
relative_link: false # 修改为false,这是关键
future: true
syntax_highlighter: highlight.js
highlight:
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
prismjs:
preprocess: true
line_number: true
tab_replace: ''

以及:

1
2
3
4
5
6
7
url: https://pqcu77.github.io
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks

在这里添加 root: /


Fluid魔改记录
https://pqcu77.github.io/2025/03/05/Fluid魔改记录/
作者
linqt
发布于
2025年3月5日
许可协议