增强友联可扩展性

This commit is contained in:
小赵同学 committed 2024-07-12 18:28:07 +08:00
1 parent 5ce12576c7
commit e32ca6759d
20 files changed
+632 -383

No files matched your search

+141
View File
@@ -0,0 +1,141 @@
- url: "https://blog.keepke.com"
title: "保持思考与理性"
name: "吾柯"
- url: "https://qq.md"
title: "福建三明尤溪人士"
name: "叶开"
- url: "https://loseu.cc"
title: "愿陪你慢慢长大"
name: "强仔"
- url: "https://yang99.fun"
title: "感谢相识"
name: "一泽"
- url: "https://qydzz.cn"
title: "用文字记录那些时间带走的东西"
name: "七栀"
- url: "https://www.rz.sb"
title: "一个若志的网络自留地"
name: "若志随笔"
- url: "https://heitaosan.com"
title: "逆着光行走,任风吹雨打"
name: "黑桃三"
- url: "https://blog.allnull.cn"
title: "别让世俗淹没了生活"
name: "十七的小栈"
- url: "https://vian.top"
title: "想要的都拥有,得不到的都释怀!"
name: "Vian"
- url: "https://www.200011.net"
title: "A website for myself"
name: "油油"
- url: "https://www.dawuyu.com"
title: "假如没有假如,如果没有如果"
name: "大悟博客"
- url: "https://www.sunjianjian.com"
title: "总会有温柔的人愿意站在你能看见的地方。"
name: "Sun's Blog"
- url: "https://duanxiansen.com"
title: "迄今所有人生都大写着失败,但并不妨碍我继续向前"
name: "段先森"
- url: "https://blog.fivk.cn"
title: "相逢的人会再相逢"
name: "Fivk博客"
- url: "https://www.logyu.cc"
title: "记录生活为忆,平地小山为屿"
name: "日志屿"
- url: "https://baipin.pw"
title: "我欲穿花寻路,直入白云深处,浩气展虹霓"
name: "百品博客"
- url: "https://cacx.cc"
title: "有关于成长、生活与情感"
name: "长安城下"
- url: "https://dyfa.top"
title: "十万伏特皮卡丘,梦想是世界和平,想要发光发热"
name: "itsNekoDeng"
- url: "https://www.baifan97.cn"
title: "一个斜杠青年的碎碎念"
name: "WhiteFan"
- url: "https://beifeng.me"
title: "记录一个人的生活点滴"
name: "北枫"
- url: "https://t-t.live"
title: "爱生活 爱分享"
name: "团团生活志"
- url: "https://mua.ooo"
title: "一 个 古 精 灵 怪"
name: "呆呆怪"
- url: "https://huziyan.com"
title: "臭袜子"
name: "臭袜子"
- url: "https://www.yuezeyi.com"
title: "我们历经苦难,我们生生不息"
name: "岳泽以"
- url: "https://www.fllv.cn"
title: "记录生活"
name: "三石的记录"
- url: "https://mojinxi.cn"
title: "相视而笑,莫逆于心。"
name: "竹春廿柒"
- url: "https://www.sirit.com.cn"
title: "真正的幸福在于对平淡生活的热爱"
name: "大嘴狗狗"
- url: "https://sweetjing.cc/"
title: "一切都会好起来,然后走向正轨,保持热爱,奔赴山海。"
name: "半截の诗"
- url: "https://vimin.cc"
title: "记录生活点滴,谱写精彩生活!"
name: "XIAOMING'S BLOG"
- url: "https://xyzbz.cn"
title: "一个九三年的老青年"
name: "网友小宋"
- url: "https://blog.zyyo.net"
title: "热烈而自由"
name: "zyyo笔记"
- url: "https://sumiler.com"
title: "微风轻轻起 夏日不再来"
name: "微风忆夏"
- url: "https://www.xiaozonglin.cn"
title: "一位来自福建泉州的高中生"
name: "林林杂语"
- url: "https://www.bio-w.cn"
title: "我在人间贩卖彩虹"
name: "西瓜撞地球"
- url: "https://te.ink"
title: "愿山野浓雾都有路灯风..."
name: "Teink"
- url: "https://www.eacls.top"
title: "看一看世界的繁华"
name: "Eacls"
- url: "https://blog.krisyan.dev"
title: "無限進步 @Schale夏萊"
name: "Kris Yan"
- url: "http://liuyuyang.net"
title: "记录一个架构师的崛起"
name: "YuYang"
- url: "https://www.liveout.cn/"
title: "漂泊于互联网中的小窝"
name: "Echo 的小窝"
- url: "https://felixway.cn"
title: "漂泊于互联网中的小窝"
name: "未来往事"
- url: "https://ihello.cc"
title: "心存阳光,必有诗和远方"
name: "小稚生活志"
- url: "https://whooc.com"
title: "寒冻三尺非此界,烈日焦灼正午时!"
name: "风呼呼"
- url: "https://www.liuchengrui.cn"
title: "其实我是一个假柳橙"
name: "柳橙睿"
- url: "https://likaijian.com"
title: "留下瞬间,记录永恒"
name: "永恒末匕"
- url: "https://yjvc.cn/"
title: "一个积极向上的生活探索者!"
name: "刘郎阁"
- url: "https://www.fcln.net"
title: "借一点落日的光与来日方长"
name: "浮沉流年"
- url: "https://www.landiaoshike.com/"
title: "天在将暗未暗时最美 爱在将爱未爱时最迷人"
name: "蓝调时刻"
+3 -180
View File
@@ -1,185 +1,8 @@
{{ define "main" }}
<div id="pjax-container">
<div class="post-content" itemprop="articleBody">
<div class="link-list">
<a href="https://monsterx.cn" target="_blank">
<div class="inner">
<div class="name">MonsterX</div>
<div class="slogan">小怪兽,大能量!</div>
</div>
</a>
<a href="https://www.ouorz.com" target="_blank">
<div class="inner">
<div class="name">TonyHe</div>
<div class="slogan">Just A Poor Lifesinger</div>
</div>
</a>
<a href="https://i.urox.cn" target="_blank">
<div class="inner">
<div class="name">Urox</div>
<div class="slogan">Victor's personal blog</div>
</div>
</a>
<a href="https://a632079.me" target="_blank">
<div class="inner">
<div class="name">藤の青</div>
<div class="slogan">Others decide you, or decide yourself.</div>
</div>
</a>
<a href="http://www.freejishu.com" target="_blank">
<div class="inner">
<div class="name">freejishu</div>
<div class="slogan">Code · Thinking · ACG</div>
</div>
</a>
<a href="https://blog.schwarzeni.com" target="_blank">
<div class="inner">
<div class="name">Schwarzeni</div>
<div class="slogan">Schwarzeni's blog</div>
</div>
</a>
<a href="https://jokerm.com" target="_blank">
<div class="inner">
<div class="name">JokerM</div>
<div class="slogan">Take your heart</div>
</div>
</a>
<a href="https://heeeepin.com" target="_blank">
<div class="inner">
<div class="name">夜雨博客</div>
<div class="slogan">品读人生,三口难言</div>
</div>
</a>
<a href="http://fafayard.com" target="_blank">
<div class="inner">
<div class="name">fafaYard</div>
<div class="slogan">花儿作伴,小园生趣</div>
</div>
</a>
<a href="https://blog.ixk.me/" target="_blank">
<div class="inner">
<div class="name">Otstar</div>
<div class="slogan">站在时光一端,回忆过往记忆。</div>
</div>
</a>
<a href="https://zigzagk.top" target="_blank">
<div class="inner">
<div class="name">ZigZagK</div>
<div class="slogan">Never give up fighting!</div>
</div>
</a>
<a href="https://blog.nekomoyi.com" target="_blank">
<div class="inner">
<div class="name">MoYi</div>
<div class="slogan">我很可爱,康康我吧QAQ</div>
</div>
</a>
<a href="https://xtaolink.cn" target="_blank">
<div class="inner">
<div class="name">深海小涛</div>
<div class="slogan">世上本无事,庸人自扰之!</div>
</div>
</a>
<a href="https://blog.cyfan.top" target="_blank">
<div class="inner">
<div class="name">陈YF的博客</div>
<div class="slogan">一个在互联网角落挣扎的小小博客,很小很小</div>
</div>
</a>
<a href="https://baka.fun" target="_blank">
<div class="inner">
<div class="name">小太</div>
<div class="slogan">迪士尼在逃公主</div>
</div>
</a>
<a href="https://blog.thun888.xyz" target="_blank">
<div class="inner">
<div class="name">thun888</div>
<div class="slogan">thun888's blog</div>
</div>
</a>
</div>
{{ partial "link_items.html" . }}
<div style="clear:both;"></div>
</div>
</div>
{{ end }}
{{ end }}
+1 -1
View File
@@ -26,7 +26,7 @@
<script type="text/javascript">
$(document).ready(function () {
// 获取当前页面的路径
var currentPath = "{{ .RelPermalink }}";
currentPath = "{{ .RelPermalink }}";
// 调用封装的函数
fetchCommentsAndCreateBarrager(currentPath, {
+6 -1
View File
@@ -21,7 +21,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "{{ .RelPermalink }}";</script>
<script>
var currentPath = "{{ .RelPermalink }}";
document.addEventListener("pjax:send", function () {
var currentPath = "{{ .RelPermalink }}";
});
</script>
<!-- 加载 Waline 和 PJAX -->
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
@@ -0,0 +1,9 @@
{{ range .Site.Data.links }}
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="{{ .url }}" rel="noopener" title="{{ .title }}" target="_blank">
<span class="links-title">{{ .name }}</span>
</a>
</div>
</div>
{{ end }}
+3
View File
@@ -182,6 +182,9 @@
scrollImg: true
});
});
console.log(currentPath)
console.log(currentPath.includes("/post/"))
console.log(currentPath.includes("/says/"))
// pjax完成后加载 waline
if (currentPath.includes("/post/") || currentPath.includes("/says/")) {
initWaline();