This commit is contained in:
小赵同学 committed 2024-08-11 22:38:21 +08:00
1 parent 78a6cc46cd
commit e86aebf49b
86 files changed
+1064 -391

No files matched your search

+13 -7
View File
@@ -22,13 +22,17 @@ https://github.com/instantpage/instant.page
PC端
---
在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
```markdown
在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
```
移动端
---
用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
```markdown
用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
```
![][1]
@@ -38,7 +42,9 @@ PC端
代码如下
<script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
```js
<script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
```
![][2]
@@ -47,5 +53,5 @@ PC端
各位来访的朋友,有没有觉得速度比之前更快呢
[1]: /pics/2024/03/4028544490.png
[2]: /pics/2024/03/1392231476.png
[1]: /pics/2024/03/4028544490.png
[2]: /pics/2024/03/1392231476.png
+81
View File
@@ -0,0 +1,81 @@
---
title: "迁移博客至hugo"
date: "2024-08-11T20:52:39+08:00"
draft: false
categories: []
tags: []
author: "小赵同学"
layout: "post"
status: "public"
categories: ["生活"]
tags: []
---
近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它
午觉起床仔细查看,原来是我当时买的四年腾讯云轻量服务器马上要到期了,于是去腾讯云官网看看有没有划算的活动,再续几年,不出我所料,腾讯云只对新用户才有优惠活动,而老用户单纯续费不走活动的话,价格不是我这种小博主可以承担的起的
所以只能放弃,再寻它法
经历差不多三四天内心博弈与挣扎,总算下定决心,我要转静态博客,比较有名的静态博客平台就属hexo,hugo,因为hexo有丰富的主题和插件生态以及很多优秀积极活跃的开发者,所以我首选的静态博客平台是hexo,实际用了几天hexo,然后再和hugo测试对比,我还是放弃了hexo
没有选择使用 Hexo 的一个最大原因是,Hexo 的性能远远不及 Hugo
我的博客文章从typecho导出大概有一百多篇文章,用hexo构建,大部分情况下需要半分钟,而在老家那个老式办公机,可能是电脑性能太差,经常会出现构建失败,而用hugo却只需要两秒即可构建所有页面及文章,即使我的老式办公机也可以快速构建,极大的原因可能是hugo的底层是go写的,构建速度会比hexo快很多
下决心转到hugo的这几天里,给我最大的感受就是hugo的主题真的是太少了,大部分都是老外写的,因为自己下载的hugo最新的版本,一些比较老的hugo主题,实际运行会出现奇奇怪怪的报错,试了几个比较满意的主题都遇到各种奇奇怪怪的报错问题,对一个新手来说还真的是蛮打击心态的,找了一圈也没有找到满意的
于是我又萌生了一个大胆的想法,自己尝试写一个自用的hugo主题
果不其然,我又遇到了第二个棘手的问题,hugo的文档真的很差,大部分都是机翻,描述的语言晦涩难懂,对于一个新手开发者真的太打击了
不过好在,之前二开过几款typecho主题,所以也是有了点自己的门道,找了几款star比较多的hugo主题,将它的主题源码下载下来,研究学习,经过差不多半个月的摸爬滚打,也算是把主题的雏形慢慢搓出来了
从此,我的博客彻底定型为hugo
## 个人感受
最大的感受就是静态博客真的很省心,转到了静态博客,我不用再花费相当大的精力去维护LNMP 类型的博客(typecho)
因为静态博客不再依赖数据库,也不会遇到数据库长时间不重启,突然某一天自己熄火
其次再也不用为ssl证书发愁,通过GitHub action 自动构建在博客托管平台,vercel会自动帮我续期ssl证书
此外我也不用再考虑通过各种各样的插件优化博客速度,静态博客全站静态化搭配国内cdn,可以达到相当快很快的访问速度
我也不用花精力在备份上了,静态博客全站托管在GitHub,通过GitHub action 自动化构建,GitHub存一份,腾讯云oss存一份,又拍云存一份,基本上都是自动化,省去了很多人工操作
或许我只用关心如何写好自己的文章
## 关于主题
经常逛我博客的老朋友可能知道,这次hugo主题主要是移植的是typecho我曾魔改的Ying主题
也有很多朋友问我typecho版本是否可以开源,这里统一回复一下,**typecho版本不开源**
主要原因是当时魔改的时候还没有一个正确的思路,功能都是东拼西凑,只达到了能跑的现状,也可以说是完完全全的屎山代码
整体的维护性很差,很多代码我自己现在都看不懂了,属于会改的不想看,不会改的看不懂
为了不耽误各位的时间,就不要来找我要主题了,最后特别感谢大家对我魔改的肯定
## 主题优化
在主题还是typecho版本的时候,有博友反馈pc端的评论弹幕很卡,这次特地重写了弹幕逻辑,各位来访的朋友,是不是感觉很丝滑呢
![image-20240811222643740](/pics/hugo/migrate-to-hugo/image-20240811222643740.png)
目前主题还是雏形,主题还在开发中,更多功能,敬请期待
## 特别感谢
特别感谢主题开发期间提供帮助的博友以及开发者(以下排名不分先后)
hugo 官方 https://gohugo.io
[团团]( https://t-t.live) https://t-t.live
[叶开]( https://qq.md) https://qq.md
[永恒末匕](https://likaijian.com/) https://likaijian.com
+11
View File
@@ -79,6 +79,17 @@
var option;
var dataMap = new Map();
var key = "2024-08-11";
var value = dataMap.get(key);
var link = "/post/migrate-to-hugo/";
var title = "迁移博客至hugo";
if (value == null) {
dataMap.set(key, [{link, title}]);
} else {
value.push({link, title});
}
var key = "2024-04-05";
var value = dataMap.get(key);
var link = "/post/1287/";
+34 -12
View File
@@ -71,18 +71,6 @@
@@ -95,6 +83,40 @@
<h3 class="diy-h3" uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false" data-toggle="collapse"
data-target="#collapse202408" aria-expanded="false"
aria-controls="collapse202408">
08月
</h3>
<div class="collapse" id="collapse202408"
uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false">
<li data-date="20240811">
<span class="articles_date_time">08/11</span>
<a class="a-archives" uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false"
href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</li>
</div>
<h3 class="diy-h3" uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false" data-toggle="collapse"
data-target="#collapse202404" aria-expanded="false"
aria-controls="collapse202404">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
+5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
+2 -2
View File
@@ -6,11 +6,11 @@
<description></description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-cn</language>
<lastBuildDate>Fri, 05 Apr 2024 12:39:00 +0000</lastBuildDate><atom:link href="https://usj.cc/categories/rss.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sun, 11 Aug 2024 20:52:39 +0800</lastBuildDate><atom:link href="https://usj.cc/categories/rss.xml" rel="self" type="application/rss+xml" />
<item>
<title>生活</title>
<link>https://usj.cc/categories/%E7%94%9F%E6%B4%BB/rss.xml</link>
<pubDate>Fri, 05 Apr 2024 12:39:00 +0000</pubDate>
<pubDate>Sun, 11 Aug 2024 20:52:39 +0800</pubDate>
<guid>https://usj.cc/categories/%E7%94%9F%E6%B4%BB/rss.xml</guid>
<description></description>
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
+8 -11
View File
@@ -26,21 +26,18 @@
https://github.com/instantpage/instant.page</a></p>
<p>项目的介绍这样写到</p>
<h2 id="pc端">PC端</h2>
<pre><code>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</code></pre>
<h2 id="移动端">移动端</h2>
<pre><code>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
</span></span><span style="display:flex;"><span>另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
</span></span><span style="display:flex;"><span>您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</span></span></code></pre></div><h2 id="移动端">移动端</h2>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/4028544490.png" alt="" class="lazyload"></p>
<p>汉译过来大概意思就是,当鼠标即将悬停到a标签的之前,对该链接进行预加载,提高访问速度</p>
<p>因为之前有同学反馈我的博客点击文章加载有些慢,于是乎说干就干,项目很简单,如需上手,直接在body标签之前加入一行js代码即可</p>
<p>代码如下</p>
<pre><code>&lt;script src=&quot;//instant.page/5.2.0&quot; type=&quot;module&quot; integrity=&quot;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&quot;&gt;&lt;/script&gt;
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-js" data-lang="js"><span style="display:flex;"><span><span style="color:#ce5c00;font-weight:bold">&lt;</span><span style="color:#000">script</span> <span style="color:#000">src</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;//instant.page/5.2.0&#34;</span> <span style="color:#000">type</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;module&#34;</span> <span style="color:#000">integrity</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&#34;</span><span style="color:#ce5c00;font-weight:bold">&gt;&lt;</span><span style="color:#a40000">/script&gt;</span>
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/1392231476.png" alt="" class="lazyload"></p>
<p>如上截图所示,当鼠标即将点击到文章链接,instant.page会对文章链接执行预加载,从而提高页面渲染速度</p>
<p>各位来访的朋友,有没有觉得速度比之前更快呢</p>
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
+96 -1
View File
@@ -6,7 +6,102 @@
<description></description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-cn</language>
<lastBuildDate>Fri, 05 Apr 2024 12:39:00 +0000</lastBuildDate><atom:link href="https://usj.cc/categories/%E7%94%9F%E6%B4%BB/rss.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sun, 11 Aug 2024 20:52:39 +0800</lastBuildDate><atom:link href="https://usj.cc/categories/%E7%94%9F%E6%B4%BB/rss.xml" rel="self" type="application/rss+xml" />
<item>
<title>迁移博客至hugo</title>
<link>https://usj.cc/post/migrate-to-hugo/</link>
<pubDate>Sun, 11 Aug 2024 20:52:39 +0800</pubDate>
<guid>https://usj.cc/post/migrate-to-hugo/</guid>
<description>近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它 午觉起床仔细查看,原来是我当时买的四年腾讯云</description>
<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="/" alt="迁移博客至hugo" /><p>近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它</p>
<p>午觉起床仔细查看,原来是我当时买的四年腾讯云轻量服务器马上要到期了,于是去腾讯云官网看看有没有划算的活动,再续几年,不出我所料,腾讯云只对新用户才有优惠活动,而老用户单纯续费不走活动的话,价格不是我这种小博主可以承担的起的</p>
<p>所以只能放弃,再寻它法</p>
<p>经历差不多三四天内心博弈与挣扎,总算下定决心,我要转静态博客,比较有名的静态博客平台就属hexo,hugo,因为hexo有丰富的主题和插件生态以及很多优秀积极活跃的开发者,所以我首选的静态博客平台是hexo,实际用了几天hexo,然后再和hugo测试对比,我还是放弃了hexo</p>
<p>没有选择使用 Hexo 的一个最大原因是,Hexo 的性能远远不及 Hugo</p>
<p>我的博客文章从typecho导出大概有一百多篇文章,用hexo构建,大部分情况下需要半分钟,而在老家那个老式办公机,可能是电脑性能太差,经常会出现构建失败,而用hugo却只需要两秒即可构建所有页面及文章,即使我的老式办公机也可以快速构建,极大的原因可能是hugo的底层是go写的,构建速度会比hexo快很多</p>
<p>下决心转到hugo的这几天里,给我最大的感受就是hugo的主题真的是太少了,大部分都是老外写的,因为自己下载的hugo最新的版本,一些比较老的hugo主题,实际运行会出现奇奇怪怪的报错,试了几个比较满意的主题都遇到各种奇奇怪怪的报错问题,对一个新手来说还真的是蛮打击心态的,找了一圈也没有找到满意的</p>
<p>于是我又萌生了一个大胆的想法,自己尝试写一个自用的hugo主题</p>
<p>果不其然,我又遇到了第二个棘手的问题,hugo的文档真的很差,大部分都是机翻,描述的语言晦涩难懂,对于一个新手开发者真的太打击了</p>
<p>不过好在,之前二开过几款typecho主题,所以也是有了点自己的门道,找了几款star比较多的hugo主题,将它的主题源码下载下来,研究学习,经过差不多半个月的摸爬滚打,也算是把主题的雏形慢慢搓出来了</p>
<p>从此,我的博客彻底定型为hugo</p>
<h2 id="个人感受">个人感受</h2>
<p>最大的感受就是静态博客真的很省心,转到了静态博客,我不用再花费相当大的精力去维护LNMP 类型的博客(typecho)</p>
<p>因为静态博客不再依赖数据库,也不会遇到数据库长时间不重启,突然某一天自己熄火</p>
<p>其次再也不用为ssl证书发愁,通过GitHub action 自动构建在博客托管平台,vercel会自动帮我续期ssl证书</p>
<p>此外我也不用再考虑通过各种各样的插件优化博客速度,静态博客全站静态化搭配国内cdn,可以达到相当快很快的访问速度</p>
<p>我也不用花精力在备份上了,静态博客全站托管在GitHub,通过GitHub action 自动化构建,GitHub存一份,腾讯云oss存一份,又拍云存一份,基本上都是自动化,省去了很多人工操作</p>
<p>或许我只用关心如何写好自己的文章</p>
<h2 id="关于主题">关于主题</h2>
<p>经常逛我博客的老朋友可能知道,这次hugo主题主要是移植的是typecho我曾魔改的Ying主题</p>
<p>也有很多朋友问我typecho版本是否可以开源,这里统一回复一下,<strong>typecho版本不开源</strong></p>
<p>主要原因是当时魔改的时候还没有一个正确的思路,功能都是东拼西凑,只达到了能跑的现状,也可以说是完完全全的屎山代码</p>
<p>整体的维护性很差,很多代码我自己现在都看不懂了,属于会改的不想看,不会改的看不懂</p>
<p>为了不耽误各位的时间,就不要来找我要主题了,最后特别感谢大家对我魔改的肯定</p>
<h2 id="主题优化">主题优化</h2>
<p>在主题还是typecho版本的时候,有博友反馈pc端的评论弹幕很卡,这次特地重写了弹幕逻辑,各位来访的朋友,是不是感觉很丝滑呢</p>
<p>
<img data-lazy-src="/pics/hugo/migrate-to-hugo/image-20240811222643740.png" alt="image-20240811222643740" class="lazyload"></p>
<p>目前主题还是雏形,主题还在开发中,更多功能,敬请期待</p>
<h2 id="特别感谢">特别感谢</h2>
<p>特别感谢主题开发期间提供帮助的博友以及开发者(以下排名不分先后)</p>
<p>hugo 官方
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9nb2h1Z28uaW8%3d"
target="_blank"
>
https://gohugo.io</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
团团</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
https://t-t.live</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
叶开</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
https://qq.md</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29tLw%3d%3d"
target="_blank"
>
永恒末匕</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29t"
target="_blank"
>
https://likaijian.com</a></p>
]]></content:encoded>
</item>
<item>
<title>主机配置单</title>
<link>https://usj.cc/post/1287/</link>
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
+5 -5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -93,11 +98,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</div>
</article>
+5 -5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -93,11 +98,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</div>
</article>
+5 -5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -93,11 +98,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</div>
</article>
+5 -5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -93,11 +98,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</div>
</article>
+5 -5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -93,11 +98,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</div>
</article>
+5 -5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -93,11 +98,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</div>
</article>
+5 -5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -93,11 +98,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</div>
</article>
+5
View File
@@ -73,6 +73,11 @@
<div class="posts">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

+8 -11
View File
@@ -88,21 +88,18 @@
https://github.com/instantpage/instant.page</a></p>
<p>项目的介绍这样写到</p>
<h2 id="pc端">PC端</h2>
<pre><code>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</code></pre>
<h2 id="移动端">移动端</h2>
<pre><code>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
</span></span><span style="display:flex;"><span>另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
</span></span><span style="display:flex;"><span>您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</span></span></code></pre></div><h2 id="移动端">移动端</h2>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/4028544490.png" alt="" class="lazyload"></p>
<p>汉译过来大概意思就是,当鼠标即将悬停到a标签的之前,对该链接进行预加载,提高访问速度</p>
<p>因为之前有同学反馈我的博客点击文章加载有些慢,于是乎说干就干,项目很简单,如需上手,直接在body标签之前加入一行js代码即可</p>
<p>代码如下</p>
<pre><code>&lt;script src=&quot;//instant.page/5.2.0&quot; type=&quot;module&quot; integrity=&quot;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&quot;&gt;&lt;/script&gt;
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-js" data-lang="js"><span style="display:flex;"><span><span style="color:#ce5c00;font-weight:bold">&lt;</span><span style="color:#000">script</span> <span style="color:#000">src</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;//instant.page/5.2.0&#34;</span> <span style="color:#000">type</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;module&#34;</span> <span style="color:#000">integrity</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&#34;</span><span style="color:#ce5c00;font-weight:bold">&gt;&lt;</span><span style="color:#a40000">/script&gt;</span>
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/1392231476.png" alt="" class="lazyload"></p>
<p>如上截图所示,当鼠标即将点击到文章链接,instant.page会对文章链接执行预加载,从而提高页面渲染速度</p>
<p>各位来访的朋友,有没有觉得速度比之前更快呢</p>
+5 -5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -91,11 +96,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+232
View File
@@ -0,0 +1,232 @@
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>迁移博客至hugo</title>
<link rel="alternate" type="application/rss+xml" title="优世界" href="/rss.xml">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel='stylesheet' href='/css/main.css'>
<link rel="stylesheet" href="/css/normalize.css">
<link rel="stylesheet" href="/css/remixicon.css">
<link rel="stylesheet" href="/css/uikit.min.css">
<link rel="stylesheet" href="/css/nprogress.min.css">
<link rel="stylesheet" href="/css/Artalk.css"/>
<script src="/js/jquery.min.js"></script>
<script src="/js/barrage.min.js"></script>
<script src="/js/jquery.scrollUp.min.js"></script>
<script src="/js/instantpage.min.js" type="module" defer></script>
<script src="/js/pjax.js"></script>
<link rel="stylesheet" href="/css/mywaline.css" />
<script>console.log("\n %c Amigo Theme %c https://usj.cc \n", "color: #fadfa3; background: #030307; padding:3px; font-size:12px;", "color: #ffffff;background: #16171a; padding: 3px; font-size: 12px;");</script>
<meta name="keywords" content="大学,教程,blog,优世界,优设计,博客,大学生博客,生活,文案," />
<meta name="template" content="Amigo" />
</head>
</head>
<body>
<div class="main">
<div class="container">
<div class="header">
<div class="head_author_img load-memos-editor">
<img src="/image/avatar.jpg" class="blog-img" width="80" height="80" alt="优世界" />
</div>
<div class="site-description">
<h2><span class="uk-invisible">风吹云散,云卷云舒</span></h2>
<nav class="nav social uk-visible@m">
<ul class="flat">
<a href="https://pan.usj.cc" title="GitHub" target="_blank"><i class="ri-cloudy-2-line"></i></a>
<a href="https://space.bilibili.com/525472039" title="Twitter" target="_blank"><i class="ri-bilibili-line"></i></a>
<a href="https://github.com/imzql" title="LinkedIn" target="_blank"><i class="ri-github-fill"></i></a>
</ul>
<div class="yiyandes">风吹云散,云卷云舒</div>
</nav>
</div>
<nav class="nav">
<ul class="flat">
<li class="active"><a href="/">首页</a></li>
<li class="active"><a href="/about/">关于</a></li>
<li class="active"><a href="/ly/">留言</a></li>
<li class="active"><a href="/archives/">归档</a></li>
<li class="active"><a href="/links/">友链</a></li>
<li class="active"><a href="/circles/">友圈</a></li>
</ul>
</nav>
</div>
<div id="pjax-container">
<article style="margin-bottom: 3.5em;">
<h1 class="post-title" itemprop="name headline">迁移博客至hugo</h1>
<div class="meta">
作者: 小赵同学 浏览: <span id="busuanzi_value_page_uv"></span> 字数: 1538 分类:
<a href="%e7%94%9f%e6%b4%bb">生活</a>
</div>
<div class="post-content" itemprop="articleBody" uk-scrollspy="target: > hr,h2,p,pre; cls: uk-animation-slide-bottom-small; delay: 0">
<p>近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它</p>
<p>午觉起床仔细查看,原来是我当时买的四年腾讯云轻量服务器马上要到期了,于是去腾讯云官网看看有没有划算的活动,再续几年,不出我所料,腾讯云只对新用户才有优惠活动,而老用户单纯续费不走活动的话,价格不是我这种小博主可以承担的起的</p>
<p>所以只能放弃,再寻它法</p>
<p>经历差不多三四天内心博弈与挣扎,总算下定决心,我要转静态博客,比较有名的静态博客平台就属hexo,hugo,因为hexo有丰富的主题和插件生态以及很多优秀积极活跃的开发者,所以我首选的静态博客平台是hexo,实际用了几天hexo,然后再和hugo测试对比,我还是放弃了hexo</p>
<p>没有选择使用 Hexo 的一个最大原因是,Hexo 的性能远远不及 Hugo</p>
<p>我的博客文章从typecho导出大概有一百多篇文章,用hexo构建,大部分情况下需要半分钟,而在老家那个老式办公机,可能是电脑性能太差,经常会出现构建失败,而用hugo却只需要两秒即可构建所有页面及文章,即使我的老式办公机也可以快速构建,极大的原因可能是hugo的底层是go写的,构建速度会比hexo快很多</p>
<p>下决心转到hugo的这几天里,给我最大的感受就是hugo的主题真的是太少了,大部分都是老外写的,因为自己下载的hugo最新的版本,一些比较老的hugo主题,实际运行会出现奇奇怪怪的报错,试了几个比较满意的主题都遇到各种奇奇怪怪的报错问题,对一个新手来说还真的是蛮打击心态的,找了一圈也没有找到满意的</p>
<p>于是我又萌生了一个大胆的想法,自己尝试写一个自用的hugo主题</p>
<p>果不其然,我又遇到了第二个棘手的问题,hugo的文档真的很差,大部分都是机翻,描述的语言晦涩难懂,对于一个新手开发者真的太打击了</p>
<p>不过好在,之前二开过几款typecho主题,所以也是有了点自己的门道,找了几款star比较多的hugo主题,将它的主题源码下载下来,研究学习,经过差不多半个月的摸爬滚打,也算是把主题的雏形慢慢搓出来了</p>
<p>从此,我的博客彻底定型为hugo</p>
<h2 id="个人感受">个人感受</h2>
<p>最大的感受就是静态博客真的很省心,转到了静态博客,我不用再花费相当大的精力去维护LNMP 类型的博客(typecho)</p>
<p>因为静态博客不再依赖数据库,也不会遇到数据库长时间不重启,突然某一天自己熄火</p>
<p>其次再也不用为ssl证书发愁,通过GitHub action 自动构建在博客托管平台,vercel会自动帮我续期ssl证书</p>
<p>此外我也不用再考虑通过各种各样的插件优化博客速度,静态博客全站静态化搭配国内cdn,可以达到相当快很快的访问速度</p>
<p>我也不用花精力在备份上了,静态博客全站托管在GitHub,通过GitHub action 自动化构建,GitHub存一份,腾讯云oss存一份,又拍云存一份,基本上都是自动化,省去了很多人工操作</p>
<p>或许我只用关心如何写好自己的文章</p>
<h2 id="关于主题">关于主题</h2>
<p>经常逛我博客的老朋友可能知道,这次hugo主题主要是移植的是typecho我曾魔改的Ying主题</p>
<p>也有很多朋友问我typecho版本是否可以开源,这里统一回复一下,<strong>typecho版本不开源</strong></p>
<p>主要原因是当时魔改的时候还没有一个正确的思路,功能都是东拼西凑,只达到了能跑的现状,也可以说是完完全全的屎山代码</p>
<p>整体的维护性很差,很多代码我自己现在都看不懂了,属于会改的不想看,不会改的看不懂</p>
<p>为了不耽误各位的时间,就不要来找我要主题了,最后特别感谢大家对我魔改的肯定</p>
<h2 id="主题优化">主题优化</h2>
<p>在主题还是typecho版本的时候,有博友反馈pc端的评论弹幕很卡,这次特地重写了弹幕逻辑,各位来访的朋友,是不是感觉很丝滑呢</p>
<p>
<img data-lazy-src="/pics/hugo/migrate-to-hugo/image-20240811222643740.png" alt="image-20240811222643740" class="lazyload"></p>
<p>目前主题还是雏形,主题还在开发中,更多功能,敬请期待</p>
<h2 id="特别感谢">特别感谢</h2>
<p>特别感谢主题开发期间提供帮助的博友以及开发者(以下排名不分先后)</p>
<p>hugo 官方
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9nb2h1Z28uaW8%3d"
target="_blank"
>
https://gohugo.io</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
团团</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
https://t-t.live</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
叶开</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
https://qq.md</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29tLw%3d%3d"
target="_blank"
>
永恒末匕</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29t"
target="_blank"
>
https://likaijian.com</a></p>
</div>
<div class="post-tags" style="margin-top: -30px;">
<nav class="nav tags">
<ul class="flat">
</ul>
</nav>
</div>
</article>
<hr class="uk-divider-icon">
<div id="comments" class="comments-area">
<link href="/css/Artalk.css" rel="stylesheet" />
<div id="Comments" uk-scrollspy="target: div,span,img> ; cls: uk-animation-slide-bottom-small;"></div>
<script src="/js/Artalk.js"></script>
<script>
if (document.querySelector("#Comments")) {
Artalk.init({
el: '#Comments',
server: 'https://artalk.5b2.cn',
site: '优世界',
flatMode: true
})
}
</script>
</div>
<script async src="/js/bsz.js"></script>
</div>
<div class="footer">
<nav class="nav" style="clear: both;">
© 2019 - 2024
<br>
<a href="https://beian.miit.gov.cn/" target="_blank"><span style="color:#999999;">鄂ICP备2022015735号-1</span></a>
<br>
本站由<a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="blank" title="又拍云"
style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
<span style="color: var(--contentColor);font-weight: 700;">又拍云CDN</span>
</a>提供CDN加速服务
<br>
</nav>
</div>
</div>
</div>
<script src="/js/iconfont.js"></script>
<script src="/js/lightgallery.umd.min.js"></script>
<script src="/js/uikit.min.js"></script>
<script src="/js/EasyLazyload.min.js"></script>
<script src="/js/view-image.min.js"></script>
<script src="/js/Artalk.js"></script>
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script src="/js/echarts.min.js"></script>
<script src="/js/tiaozhuan.js"></script>
<script async src="/js/bsz.js"></script>
</body>
</html>
+5 -5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -91,11 +96,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -91,11 +96,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -91,11 +96,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -91,11 +96,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -91,11 +96,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -91,11 +96,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
+5
View File
@@ -71,6 +71,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
+104 -12
View File
@@ -6,7 +6,102 @@
<description></description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-cn</language>
<lastBuildDate>Wed, 07 Aug 2024 16:10:05 +0800</lastBuildDate><atom:link href="https://usj.cc/post/rss.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sun, 11 Aug 2024 20:52:39 +0800</lastBuildDate><atom:link href="https://usj.cc/post/rss.xml" rel="self" type="application/rss+xml" />
<item>
<title>迁移博客至hugo</title>
<link>https://usj.cc/post/migrate-to-hugo/</link>
<pubDate>Sun, 11 Aug 2024 20:52:39 +0800</pubDate>
<guid>https://usj.cc/post/migrate-to-hugo/</guid>
<description>近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它 午觉起床仔细查看,原来是我当时买的四年腾讯云</description>
<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="/" alt="迁移博客至hugo" /><p>近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它</p>
<p>午觉起床仔细查看,原来是我当时买的四年腾讯云轻量服务器马上要到期了,于是去腾讯云官网看看有没有划算的活动,再续几年,不出我所料,腾讯云只对新用户才有优惠活动,而老用户单纯续费不走活动的话,价格不是我这种小博主可以承担的起的</p>
<p>所以只能放弃,再寻它法</p>
<p>经历差不多三四天内心博弈与挣扎,总算下定决心,我要转静态博客,比较有名的静态博客平台就属hexo,hugo,因为hexo有丰富的主题和插件生态以及很多优秀积极活跃的开发者,所以我首选的静态博客平台是hexo,实际用了几天hexo,然后再和hugo测试对比,我还是放弃了hexo</p>
<p>没有选择使用 Hexo 的一个最大原因是,Hexo 的性能远远不及 Hugo</p>
<p>我的博客文章从typecho导出大概有一百多篇文章,用hexo构建,大部分情况下需要半分钟,而在老家那个老式办公机,可能是电脑性能太差,经常会出现构建失败,而用hugo却只需要两秒即可构建所有页面及文章,即使我的老式办公机也可以快速构建,极大的原因可能是hugo的底层是go写的,构建速度会比hexo快很多</p>
<p>下决心转到hugo的这几天里,给我最大的感受就是hugo的主题真的是太少了,大部分都是老外写的,因为自己下载的hugo最新的版本,一些比较老的hugo主题,实际运行会出现奇奇怪怪的报错,试了几个比较满意的主题都遇到各种奇奇怪怪的报错问题,对一个新手来说还真的是蛮打击心态的,找了一圈也没有找到满意的</p>
<p>于是我又萌生了一个大胆的想法,自己尝试写一个自用的hugo主题</p>
<p>果不其然,我又遇到了第二个棘手的问题,hugo的文档真的很差,大部分都是机翻,描述的语言晦涩难懂,对于一个新手开发者真的太打击了</p>
<p>不过好在,之前二开过几款typecho主题,所以也是有了点自己的门道,找了几款star比较多的hugo主题,将它的主题源码下载下来,研究学习,经过差不多半个月的摸爬滚打,也算是把主题的雏形慢慢搓出来了</p>
<p>从此,我的博客彻底定型为hugo</p>
<h2 id="个人感受">个人感受</h2>
<p>最大的感受就是静态博客真的很省心,转到了静态博客,我不用再花费相当大的精力去维护LNMP 类型的博客(typecho)</p>
<p>因为静态博客不再依赖数据库,也不会遇到数据库长时间不重启,突然某一天自己熄火</p>
<p>其次再也不用为ssl证书发愁,通过GitHub action 自动构建在博客托管平台,vercel会自动帮我续期ssl证书</p>
<p>此外我也不用再考虑通过各种各样的插件优化博客速度,静态博客全站静态化搭配国内cdn,可以达到相当快很快的访问速度</p>
<p>我也不用花精力在备份上了,静态博客全站托管在GitHub,通过GitHub action 自动化构建,GitHub存一份,腾讯云oss存一份,又拍云存一份,基本上都是自动化,省去了很多人工操作</p>
<p>或许我只用关心如何写好自己的文章</p>
<h2 id="关于主题">关于主题</h2>
<p>经常逛我博客的老朋友可能知道,这次hugo主题主要是移植的是typecho我曾魔改的Ying主题</p>
<p>也有很多朋友问我typecho版本是否可以开源,这里统一回复一下,<strong>typecho版本不开源</strong></p>
<p>主要原因是当时魔改的时候还没有一个正确的思路,功能都是东拼西凑,只达到了能跑的现状,也可以说是完完全全的屎山代码</p>
<p>整体的维护性很差,很多代码我自己现在都看不懂了,属于会改的不想看,不会改的看不懂</p>
<p>为了不耽误各位的时间,就不要来找我要主题了,最后特别感谢大家对我魔改的肯定</p>
<h2 id="主题优化">主题优化</h2>
<p>在主题还是typecho版本的时候,有博友反馈pc端的评论弹幕很卡,这次特地重写了弹幕逻辑,各位来访的朋友,是不是感觉很丝滑呢</p>
<p>
<img data-lazy-src="/pics/hugo/migrate-to-hugo/image-20240811222643740.png" alt="image-20240811222643740" class="lazyload"></p>
<p>目前主题还是雏形,主题还在开发中,更多功能,敬请期待</p>
<h2 id="特别感谢">特别感谢</h2>
<p>特别感谢主题开发期间提供帮助的博友以及开发者(以下排名不分先后)</p>
<p>hugo 官方
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9nb2h1Z28uaW8%3d"
target="_blank"
>
https://gohugo.io</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
团团</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
https://t-t.live</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
叶开</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
https://qq.md</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29tLw%3d%3d"
target="_blank"
>
永恒末匕</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29t"
target="_blank"
>
https://likaijian.com</a></p>
]]></content:encoded>
</item>
<item>
<title>主机配置单</title>
<link>https://usj.cc/post/1287/</link>
@@ -68,21 +163,18 @@
https://github.com/instantpage/instant.page</a></p>
<p>项目的介绍这样写到</p>
<h2 id="pc端">PC端</h2>
<pre><code>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</code></pre>
<h2 id="移动端">移动端</h2>
<pre><code>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
</span></span><span style="display:flex;"><span>另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
</span></span><span style="display:flex;"><span>您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</span></span></code></pre></div><h2 id="移动端">移动端</h2>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/4028544490.png" alt="" class="lazyload"></p>
<p>汉译过来大概意思就是,当鼠标即将悬停到a标签的之前,对该链接进行预加载,提高访问速度</p>
<p>因为之前有同学反馈我的博客点击文章加载有些慢,于是乎说干就干,项目很简单,如需上手,直接在body标签之前加入一行js代码即可</p>
<p>代码如下</p>
<pre><code>&lt;script src=&quot;//instant.page/5.2.0&quot; type=&quot;module&quot; integrity=&quot;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&quot;&gt;&lt;/script&gt;
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-js" data-lang="js"><span style="display:flex;"><span><span style="color:#ce5c00;font-weight:bold">&lt;</span><span style="color:#000">script</span> <span style="color:#000">src</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;//instant.page/5.2.0&#34;</span> <span style="color:#000">type</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;module&#34;</span> <span style="color:#000">integrity</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&#34;</span><span style="color:#ce5c00;font-weight:bold">&gt;&lt;</span><span style="color:#a40000">/script&gt;</span>
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/1392231476.png" alt="" class="lazyload"></p>
<p>如上截图所示,当鼠标即将点击到文章链接,instant.page会对文章链接执行预加载,从而提高页面渲染速度</p>
<p>各位来访的朋友,有没有觉得速度比之前更快呢</p>
+104 -12
View File
@@ -6,7 +6,102 @@
<description></description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-cn</language>
<lastBuildDate>Wed, 07 Aug 2024 16:10:05 +0800</lastBuildDate><atom:link href="https://usj.cc/rss.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sun, 11 Aug 2024 20:52:39 +0800</lastBuildDate><atom:link href="https://usj.cc/rss.xml" rel="self" type="application/rss+xml" />
<item>
<title>迁移博客至hugo</title>
<link>https://usj.cc/post/migrate-to-hugo/</link>
<pubDate>Sun, 11 Aug 2024 20:52:39 +0800</pubDate>
<guid>https://usj.cc/post/migrate-to-hugo/</guid>
<description>近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它 午觉起床仔细查看,原来是我当时买的四年腾讯云</description>
<content:encoded><![CDATA[<img loading="lazy" decoding="async" src="/" alt="迁移博客至hugo" /><p>近日,在午休的时候,突然收到了腾讯云的短信,起初以为就是腾讯云的新产品上线的营销短信,也就没管它</p>
<p>午觉起床仔细查看,原来是我当时买的四年腾讯云轻量服务器马上要到期了,于是去腾讯云官网看看有没有划算的活动,再续几年,不出我所料,腾讯云只对新用户才有优惠活动,而老用户单纯续费不走活动的话,价格不是我这种小博主可以承担的起的</p>
<p>所以只能放弃,再寻它法</p>
<p>经历差不多三四天内心博弈与挣扎,总算下定决心,我要转静态博客,比较有名的静态博客平台就属hexo,hugo,因为hexo有丰富的主题和插件生态以及很多优秀积极活跃的开发者,所以我首选的静态博客平台是hexo,实际用了几天hexo,然后再和hugo测试对比,我还是放弃了hexo</p>
<p>没有选择使用 Hexo 的一个最大原因是,Hexo 的性能远远不及 Hugo</p>
<p>我的博客文章从typecho导出大概有一百多篇文章,用hexo构建,大部分情况下需要半分钟,而在老家那个老式办公机,可能是电脑性能太差,经常会出现构建失败,而用hugo却只需要两秒即可构建所有页面及文章,即使我的老式办公机也可以快速构建,极大的原因可能是hugo的底层是go写的,构建速度会比hexo快很多</p>
<p>下决心转到hugo的这几天里,给我最大的感受就是hugo的主题真的是太少了,大部分都是老外写的,因为自己下载的hugo最新的版本,一些比较老的hugo主题,实际运行会出现奇奇怪怪的报错,试了几个比较满意的主题都遇到各种奇奇怪怪的报错问题,对一个新手来说还真的是蛮打击心态的,找了一圈也没有找到满意的</p>
<p>于是我又萌生了一个大胆的想法,自己尝试写一个自用的hugo主题</p>
<p>果不其然,我又遇到了第二个棘手的问题,hugo的文档真的很差,大部分都是机翻,描述的语言晦涩难懂,对于一个新手开发者真的太打击了</p>
<p>不过好在,之前二开过几款typecho主题,所以也是有了点自己的门道,找了几款star比较多的hugo主题,将它的主题源码下载下来,研究学习,经过差不多半个月的摸爬滚打,也算是把主题的雏形慢慢搓出来了</p>
<p>从此,我的博客彻底定型为hugo</p>
<h2 id="个人感受">个人感受</h2>
<p>最大的感受就是静态博客真的很省心,转到了静态博客,我不用再花费相当大的精力去维护LNMP 类型的博客(typecho)</p>
<p>因为静态博客不再依赖数据库,也不会遇到数据库长时间不重启,突然某一天自己熄火</p>
<p>其次再也不用为ssl证书发愁,通过GitHub action 自动构建在博客托管平台,vercel会自动帮我续期ssl证书</p>
<p>此外我也不用再考虑通过各种各样的插件优化博客速度,静态博客全站静态化搭配国内cdn,可以达到相当快很快的访问速度</p>
<p>我也不用花精力在备份上了,静态博客全站托管在GitHub,通过GitHub action 自动化构建,GitHub存一份,腾讯云oss存一份,又拍云存一份,基本上都是自动化,省去了很多人工操作</p>
<p>或许我只用关心如何写好自己的文章</p>
<h2 id="关于主题">关于主题</h2>
<p>经常逛我博客的老朋友可能知道,这次hugo主题主要是移植的是typecho我曾魔改的Ying主题</p>
<p>也有很多朋友问我typecho版本是否可以开源,这里统一回复一下,<strong>typecho版本不开源</strong></p>
<p>主要原因是当时魔改的时候还没有一个正确的思路,功能都是东拼西凑,只达到了能跑的现状,也可以说是完完全全的屎山代码</p>
<p>整体的维护性很差,很多代码我自己现在都看不懂了,属于会改的不想看,不会改的看不懂</p>
<p>为了不耽误各位的时间,就不要来找我要主题了,最后特别感谢大家对我魔改的肯定</p>
<h2 id="主题优化">主题优化</h2>
<p>在主题还是typecho版本的时候,有博友反馈pc端的评论弹幕很卡,这次特地重写了弹幕逻辑,各位来访的朋友,是不是感觉很丝滑呢</p>
<p>
<img data-lazy-src="/pics/hugo/migrate-to-hugo/image-20240811222643740.png" alt="image-20240811222643740" class="lazyload"></p>
<p>目前主题还是雏形,主题还在开发中,更多功能,敬请期待</p>
<h2 id="特别感谢">特别感谢</h2>
<p>特别感谢主题开发期间提供帮助的博友以及开发者(以下排名不分先后)</p>
<p>hugo 官方
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9nb2h1Z28uaW8%3d"
target="_blank"
>
https://gohugo.io</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
团团</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly90LXQubGl2ZQ%3d%3d"
target="_blank"
>
https://t-t.live</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
叶开</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9xcS5tZA%3d%3d"
target="_blank"
>
https://qq.md</a></p>
<p>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29tLw%3d%3d"
target="_blank"
>
永恒末匕</a>
<a
href="/tiaozhuan/index.html?target=aHR0cHM6Ly9saWthaWppYW4uY29t"
target="_blank"
>
https://likaijian.com</a></p>
]]></content:encoded>
</item>
<item>
<title>主机配置单</title>
<link>https://usj.cc/post/1287/</link>
@@ -68,21 +163,18 @@
https://github.com/instantpage/instant.page</a></p>
<p>项目的介绍这样写到</p>
<h2 id="pc端">PC端</h2>
<pre><code>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</code></pre>
<h2 id="移动端">移动端</h2>
<pre><code>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
</span></span><span style="display:flex;"><span>另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
</span></span><span style="display:flex;"><span>您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
</span></span></code></pre></div><h2 id="移动端">移动端</h2>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-markdown" data-lang="markdown"><span style="display:flex;"><span>用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/4028544490.png" alt="" class="lazyload"></p>
<p>汉译过来大概意思就是,当鼠标即将悬停到a标签的之前,对该链接进行预加载,提高访问速度</p>
<p>因为之前有同学反馈我的博客点击文章加载有些慢,于是乎说干就干,项目很简单,如需上手,直接在body标签之前加入一行js代码即可</p>
<p>代码如下</p>
<pre><code>&lt;script src=&quot;//instant.page/5.2.0&quot; type=&quot;module&quot; integrity=&quot;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&quot;&gt;&lt;/script&gt;
</code></pre>
<p>
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-js" data-lang="js"><span style="display:flex;"><span><span style="color:#ce5c00;font-weight:bold">&lt;</span><span style="color:#000">script</span> <span style="color:#000">src</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;//instant.page/5.2.0&#34;</span> <span style="color:#000">type</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;module&#34;</span> <span style="color:#000">integrity</span><span style="color:#ce5c00;font-weight:bold">=</span><span style="color:#4e9a06">&#34;sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z&#34;</span><span style="color:#ce5c00;font-weight:bold">&gt;&lt;</span><span style="color:#a40000">/script&gt;</span>
</span></span></code></pre></div><p>
<img data-lazy-src="/pics/2024/03/1392231476.png" alt="" class="lazyload"></p>
<p>如上截图所示,当鼠标即将点击到文章链接,instant.page会对文章链接执行预加载,从而提高页面渲染速度</p>
<p>各位来访的朋友,有没有觉得速度比之前更快呢</p>
+11 -8
View File
@@ -2,11 +2,20 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://usj.cc/categories/</loc>
<lastmod>2024-08-11T20:52:39+08:00</lastmod>
</url><url>
<loc>https://usj.cc/post/</loc>
<lastmod>2024-08-07T16:10:05+08:00</lastmod>
<lastmod>2024-08-11T20:52:39+08:00</lastmod>
</url><url>
<loc>https://usj.cc/</loc>
<lastmod>2024-08-07T16:10:05+08:00</lastmod>
<lastmod>2024-08-11T20:52:39+08:00</lastmod>
</url><url>
<loc>https://usj.cc/categories/%E7%94%9F%E6%B4%BB/</loc>
<lastmod>2024-08-11T20:52:39+08:00</lastmod>
</url><url>
<loc>https://usj.cc/post/migrate-to-hugo/</loc>
<lastmod>2024-08-11T20:52:39+08:00</lastmod>
</url><url>
<loc>https://usj.cc/circles/</loc>
<lastmod>2024-08-03T00:00:00+00:00</lastmod>
@@ -25,15 +34,9 @@
</url><url>
<loc>https://usj.cc/ly/</loc>
<lastmod>2024-07-11T00:00:00+00:00</lastmod>
</url><url>
<loc>https://usj.cc/categories/</loc>
<lastmod>2024-04-05T12:39:00+00:00</lastmod>
</url><url>
<loc>https://usj.cc/post/1287/</loc>
<lastmod>2024-04-05T12:39:00+00:00</lastmod>
</url><url>
<loc>https://usj.cc/categories/%E7%94%9F%E6%B4%BB/</loc>
<lastmod>2024-04-05T12:39:00+00:00</lastmod>
</url><url>
<loc>https://usj.cc/post/1284/</loc>
<lastmod>2024-03-16T15:24:55+00:00</lastmod>
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
+5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 11, 2024</div>
<a href="https://usj.cc/post/migrate-to-hugo/">迁移博客至hugo</a>
</div>
<div class="post">
<div class="time">April 5, 2024</div>
<a href="https://usj.cc/post/1287/">主机配置单</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/1243/">家乡随拍</a>
</div>
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 16, 2023</div>
<a href="https://usj.cc/post/1223/">襄阳唐城</a>
</div>
<div class="post">
<div class="time">April 23, 2023</div>
<a href="https://usj.cc/post/1142/">苏州一日游</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/92/">记录篇:将笔记本联想小新pro13网卡由螃蟹网卡换成AX210网卡</a>
</div>
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">August 22, 2022</div>
<a href="https://usj.cc/post/87/">生活篇:温馨提示假期余额不足,浅浅总结一下这个暑假</a>
</div>
<div class="post">
<div class="time">June 29, 2022</div>
<a href="https://usj.cc/post/85/">生活篇:离校,暑假,租房,面试,致那些日子的琐碎事</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/74/">2022,致我的春节回忆录</a>
</div>
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 22, 2021</div>
<a href="https://usj.cc/post/40/">放假之前最后一次的照片合集,再见啦!理工</a>
</div>
<div class="post">
<div class="time">November 9, 2021</div>
<a href="https://usj.cc/post/25/">第一次尝试ai画简笔画,本是给自己设计logo误打误撞画起了简笔画</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/11/">我想,这是一个我人生中最特殊的中秋国庆节</a>
</div>
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">September 4, 2021</div>
<a href="https://usj.cc/post/4/">2021暑假总结,记录一下这个充实的暑假</a>
</div>
<div class="post">
<div class="time">August 31, 2021</div>
<a href="https://usj.cc/post/1/">无悔</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/69/">再次投资科目二,科目二花了400,希望19号一把过吧</a>
</div>
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">May 16, 2021</div>
<a href="https://usj.cc/post/45/">双休日襄阳游记,与朋友一起,终究还是遗憾而归</a>
</div>
<div class="post">
<div class="time">March 19, 2021</div>
<a href="https://usj.cc/post/65/">这几天都频繁下雨,上课路上被浇成成落汤鸡</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/60/">祝母校越办越好</a>
</div>
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
</div>
</article>
<ul class="pagination">
+5 -5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">December 27, 2020</div>
<a href="https://usj.cc/post/57/">期末倒计时开始</a>
</div>
<div class="post">
<div class="time">December 22, 2020</div>
<a href="https://usj.cc/post/54/">今年的第一场雪</a>
@@ -89,11 +94,6 @@
<a href="https://usj.cc/post/51/">双节快乐!家与国撞了个满怀</a>
</div>
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
</div>
</article>
<ul class="pagination">
+5
View File
@@ -69,6 +69,11 @@
<div class="post-list section">
<div class="post">
<div class="time">July 7, 2020</div>
<a href="https://usj.cc/post/50/">高考加油,相信自己</a>
</div>
<div class="post">
<div class="time">July 3, 2020</div>
<a href="https://usj.cc/post/49/">高考即将来临,老师为我们加油打气</a>
Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB