Updates

本文最后更新于 2025年12月20日 晚上

博客更新记录

说明:

该页面用于记录博客更新日志 废话

以及一些参考资料


更新计划

发布博客pixi入门教程

为博客添加个人收藏夹页面


已完成

2025/10/19

发布第一篇教程向博客

花了我6、7个小时,仓促的写了2k字(因为马上要上学了
​链接:https://skzxi.top/2025/10/18/amdgpu-windows-stable-diffusion-rocm7-pytorch2-9-launcher

2025/9/24

博客页脚修改

如题,更改页脚格式,隐藏访客记录

2025/7/30

域名重定向

如题,完成旧域名的重定向已经参数传递

2025/7/25

更换域名

fallingstar.xyz迁移到skzxi.top
旧域名26年3月到期
新域名还有3年租期

2025/6/29

完成博客首图加载动画

猜猜是怎么做的,我不怎么会css,所以这个动画其实是gif动图,用ae做的(我简直是天才!
图片在这

2025/6/21

完善博客特效

添加了鼠标点击反馈

2025/5/3

更改语录格式

​一言api:https://v1.hitokoto.cn
​我的中转api:https://hitokoto.skzxi.top

有点小无语,hexo fluid的首页语录在配置文件用的是[keys],不能拼接且只能有一个参数,一言的api又不支持指定返回参数,没办法,自己搭了个中转api,唉~

2025/3/22

为博客加入随机图片

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
document.addEventListener('DOMContentLoaded', () => {
const banner = document.getElementById('banner');
if (!banner) return;

//配置项(可按需修改)
const config = {
debounceTime: 300, // 防抖时间(ms)
maxRetry: 3, // 最大重试次数
cacheBuster: true, // 启用缓存清理
transition: '1s ease' // 背景过渡动画
};

// API列表
const APIs = [
// 参考https://zichen.zone/archives/acg-api.html
// 横图
'https://api.mtyqx.cn/api/random.php',
'https://api.r10086.com/樱道随机图片api接口.php?图片系列= 动漫综合2',
'https://api.tomys.top/api/acgimg',
'https://www.loliapi.com/acg/pc/',
'https://t.alcy.cc/pc',
'https://t.alcy.cc/moe',
// 自适应
'https://www.loliapi.com/acg/',
'https://t.alcy.cc/ycy',
'https://t.alcy.cc/moez',
// 竖图
'https://www.loliapi.com/acg/pe/',
'https://t.alcy.cc/moemp',
'https://t.alcy.cc/mp'

];

// 状态管理
let currentLoader = null;
let retryCount = 0;
let isPortrait = checkOrientation();

// 智能选择API
function selectAPI() {
return isPortrait ? APIs.slice(-6) : APIs.slice(0, 9);
}

// 方向检测
function checkOrientation() {
return window.matchMedia("(orientation: portrait)"). matches;
}

// 防抖函数
function debounce(fn, delay) {
let timer;
return (...args) => {
clearTimeout(timer);
timer = setTimeout(() => fn.apply(this, args), delay);
};
}

// 设置背景(带过渡动画)
function setBackground(url) {
banner.style.transition = `background-image ${config. transition}`;
banner.style.backgroundImage = `url('${url}')`;
}

// 加载新图片
function loadNewImage() {
if (currentLoader) {
currentLoader.onload = null;
currentLoader.onerror = null;
}

const apiPool = selectAPI();
const randomAPI = apiPool[Math.floor(Math.random() * apiPool.length)];
const finalURL = config.cacheBuster
? `${randomAPI}?r=${Date.now()}`
: randomAPI;

currentLoader = new Image();
currentLoader.onload = () => {
retryCount = 0;
setBackground(finalURL);
};
currentLoader.onerror = () => {
if (retryCount < config.maxRetry) {
retryCount++;
loadNewImage();
} else {
setBackground(theme.banner.default_bg);
}
};
currentLoader.src = finalURL;
}

// 方向变化处理
const handleOrientationChange = debounce(() => {
const newOrientation = checkOrientation();
if (newOrientation !== isPortrait) {
isPortrait = newOrientation;
loadNewImage();
}
}, config.debounceTime);

// 事件监听
window.addEventListener('resize', handleOrientationChange);

// 清理监听(防止内存泄漏)
window.addEventListener('beforeunload', () => {
window.removeEventListener('resize', handleOrientationChange);
});

// 初始化加载
loadNewImage();
});

2025/3/8

搭建个人图床

使用github+cloudflare+picgo实现

该图床除了显示图片,还可以直接显示md文件(没有渲染),txt文件,其他文件会直接下载(有兴趣可以自己多试试)

参考文章:

Github+Cloudflare搭建图床 | Cactus’s Blog


2025/3/2

博客嵌入markdown编辑器

嵌入的编辑器为 editor.md修改版

修改特色:

  • 加入本地 md 文件读取功能
  • 处理文档中相对路径图片的加载问题
  • 给编辑器加入自动保存功能
  • 编辑器代码大小优化

参考文章:

为博客加入一个好用的在线MD编辑工具 | DebuggerX’s Blog


2025/3/1

域名fallingstar.xyz上线

从下往上

配置github page
换cluodflare的dns
购买域名

2025/1/27

添加live2d看板娘

使用OhMyLive2D组件

参考资料:

如何给网页添加Live2D看板娘 | 莫 の 小屋

为你的个人博客添加一个Live2D看板娘_哔哩哔哩_bilibili

OhMyLive2D


2025/1/8

解决网站特效问题

得出结论: 你永远不知道访客的网络能不能访问cdn,所以还是用本地的吧…

参考资料:

Hexo + Fluid 美化 | EmoryHuang’s Blog

2025/1/2

博客主体完成

还有两周就期末统考,我在这心血来潮搭博客(捂脸

参考资料:

如何使用 Hexo 搭建博客 - licyk的小窝


Updates
http://skzxi.github.io/2025/01/08/blog-logs/
作者
SKzxi
发布于
2025年1月8日
更新于
2025年12月20日
许可协议