增强友联可扩展性

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

+6 -1
View File
@@ -93,7 +93,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/about\/";</script>
<script>
var currentPath = "\/about\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/about\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+6 -1
View File
@@ -178,7 +178,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/archives\/";</script>
<script>
var currentPath = "\/archives\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/archives\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+7 -2
View File
@@ -97,14 +97,19 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/categories\/";</script>
<script>
var currentPath = "\/categories\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/categories\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
window.walineInit = walineInit;
window.initWaline = function() {
walineInit({
+6 -1
View File
@@ -132,7 +132,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/";</script>
<script>
var currentPath = "\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+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();
+385 -180
View File
@@ -64,185 +64,385 @@
<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>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://blog.keepke.com" rel="noopener" title="保持思考与理性" target="_blank">
<span class="links-title">吾柯</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://qq.md" rel="noopener" title="福建三明尤溪人士" target="_blank">
<span class="links-title">叶开</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://loseu.cc" rel="noopener" title="愿陪你慢慢长大" target="_blank">
<span class="links-title">强仔</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://yang99.fun" rel="noopener" title="感谢相识" target="_blank">
<span class="links-title">一泽</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://qydzz.cn" rel="noopener" title="用文字记录那些时间带走的东西" target="_blank">
<span class="links-title">七栀</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.rz.sb" rel="noopener" title="一个若志的网络自留地" target="_blank">
<span class="links-title">若志随笔</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://heitaosan.com" rel="noopener" title="逆着光行走,任风吹雨打" target="_blank">
<span class="links-title">黑桃三</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://blog.allnull.cn" rel="noopener" title="别让世俗淹没了生活" target="_blank">
<span class="links-title">十七的小栈</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://vian.top" rel="noopener" title="想要的都拥有,得不到的都释怀!" target="_blank">
<span class="links-title">Vian</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.200011.net" rel="noopener" title="A website for myself" target="_blank">
<span class="links-title">油油</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.dawuyu.com" rel="noopener" title="假如没有假如,如果没有如果" target="_blank">
<span class="links-title">大悟博客</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.sunjianjian.com" rel="noopener" title="总会有温柔的人愿意站在你能看见的地方。" target="_blank">
<span class="links-title">Sun&#39;s Blog</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://duanxiansen.com" rel="noopener" title="迄今所有人生都大写着失败,但并不妨碍我继续向前" target="_blank">
<span class="links-title">段先森</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://blog.fivk.cn" rel="noopener" title="相逢的人会再相逢" target="_blank">
<span class="links-title">Fivk博客</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.logyu.cc" rel="noopener" title="记录生活为忆,平地小山为屿" target="_blank">
<span class="links-title">日志屿</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://baipin.pw" rel="noopener" title="我欲穿花寻路,直入白云深处,浩气展虹霓" target="_blank">
<span class="links-title">百品博客</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://cacx.cc" rel="noopener" title="有关于成长、生活与情感" target="_blank">
<span class="links-title">长安城下</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://dyfa.top" rel="noopener" title="十万伏特皮卡丘,梦想是世界和平,想要发光发热" target="_blank">
<span class="links-title">itsNekoDeng</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.baifan97.cn" rel="noopener" title="一个斜杠青年的碎碎念" target="_blank">
<span class="links-title">WhiteFan</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://beifeng.me" rel="noopener" title="记录一个人的生活点滴" target="_blank">
<span class="links-title">北枫</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://t-t.live" rel="noopener" title="爱生活 爱分享" target="_blank">
<span class="links-title">团团生活志</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://mua.ooo" rel="noopener" title="一 个 古 精 灵 怪" target="_blank">
<span class="links-title">呆呆怪</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://huziyan.com" rel="noopener" title="臭袜子" target="_blank">
<span class="links-title">臭袜子</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.yuezeyi.com" rel="noopener" title="我们历经苦难,我们生生不息" target="_blank">
<span class="links-title">岳泽以</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.fllv.cn" rel="noopener" title="记录生活" target="_blank">
<span class="links-title">三石的记录</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://mojinxi.cn" rel="noopener" title="相视而笑,莫逆于心。" target="_blank">
<span class="links-title">竹春廿柒</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.sirit.com.cn" rel="noopener" title="真正的幸福在于对平淡生活的热爱" target="_blank">
<span class="links-title">大嘴狗狗</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://sweetjing.cc/" rel="noopener" title="一切都会好起来,然后走向正轨,保持热爱,奔赴山海。" target="_blank">
<span class="links-title">半截の诗</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://vimin.cc" rel="noopener" title="记录生活点滴,谱写精彩生活!" target="_blank">
<span class="links-title">XIAOMING&#39;S BLOG</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://xyzbz.cn" rel="noopener" title="一个九三年的老青年" target="_blank">
<span class="links-title">网友小宋</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://blog.zyyo.net" rel="noopener" title="热烈而自由" target="_blank">
<span class="links-title">zyyo笔记</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://sumiler.com" rel="noopener" title="微风轻轻起 夏日不再来" target="_blank">
<span class="links-title">微风忆夏</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.xiaozonglin.cn" rel="noopener" title="一位来自福建泉州的高中生" target="_blank">
<span class="links-title">林林杂语</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.bio-w.cn" rel="noopener" title="我在人间贩卖彩虹" target="_blank">
<span class="links-title">西瓜撞地球</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://te.ink" rel="noopener" title="愿山野浓雾都有路灯风..." target="_blank">
<span class="links-title">Teink</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.eacls.top" rel="noopener" title="看一看世界的繁华" target="_blank">
<span class="links-title">Eacls</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://blog.krisyan.dev" rel="noopener" title="無限進步 @Schale夏萊" target="_blank">
<span class="links-title">Kris Yan</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="http://liuyuyang.net" rel="noopener" title="记录一个架构师的崛起" target="_blank">
<span class="links-title">YuYang</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.liveout.cn/" rel="noopener" title="漂泊于互联网中的小窝" target="_blank">
<span class="links-title">Echo 的小窝</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://felixway.cn" rel="noopener" title="漂泊于互联网中的小窝" target="_blank">
<span class="links-title">未来往事</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://ihello.cc" rel="noopener" title="心存阳光,必有诗和远方" target="_blank">
<span class="links-title">小稚生活志</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://whooc.com" rel="noopener" title="寒冻三尺非此界,烈日焦灼正午时!" target="_blank">
<span class="links-title">风呼呼</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.liuchengrui.cn" rel="noopener" title="其实我是一个假柳橙" target="_blank">
<span class="links-title">柳橙睿</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://likaijian.com" rel="noopener" title="留下瞬间,记录永恒" target="_blank">
<span class="links-title">永恒末匕</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://yjvc.cn/" rel="noopener" title="一个积极向上的生活探索者!" target="_blank">
<span class="links-title">刘郎阁</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.fcln.net" rel="noopener" title="借一点落日的光与来日方长" target="_blank">
<span class="links-title">浮沉流年</span>
</a>
</div>
</div>
<div class="link_box" uk-scrollspy="cls: uk-animation-slide-bottom-medium; repeat: true">
<div class="link_marks">
<a href="https://www.landiaoshike.com/" rel="noopener" title="天在将暗未暗时最美 爱在将爱未爱时最迷人" target="_blank">
<span class="links-title">蓝调时刻</span>
</a>
</div>
</div>
<div style="clear:both;"></div>
</div>
</div>
@@ -266,7 +466,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/links\/";</script>
<script>
var currentPath = "\/links\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/links\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+7 -2
View File
@@ -90,7 +90,7 @@
<script type="text/javascript">
$(document).ready(function () {
var currentPath = "\/post\/demo01\/";
currentPath = "\/post\/demo01\/";
fetchCommentsAndCreateBarrager(currentPath, {
@@ -127,7 +127,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/post\/demo01\/";</script>
<script>
var currentPath = "\/post\/demo01\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/post\/demo01\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+7 -2
View File
@@ -92,7 +92,7 @@
<script type="text/javascript">
$(document).ready(function () {
var currentPath = "\/post\/demo03\/";
currentPath = "\/post\/demo03\/";
fetchCommentsAndCreateBarrager(currentPath, {
@@ -129,7 +129,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/post\/demo03\/";</script>
<script>
var currentPath = "\/post\/demo03\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/post\/demo03\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+8 -3
View File
@@ -89,7 +89,7 @@
<script type="text/javascript">
$(document).ready(function () {
var currentPath = "\/post\/helloworld\/";
currentPath = "\/post\/helloworld\/";
fetchCommentsAndCreateBarrager(currentPath, {
@@ -126,14 +126,19 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/post\/helloworld\/";</script>
<script>
var currentPath = "\/post\/helloworld\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/post\/helloworld\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
window.walineInit = walineInit;
window.initWaline = function() {
walineInit({
+7 -2
View File
@@ -122,14 +122,19 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/post\/";</script>
<script>
var currentPath = "\/post\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/post\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
window.walineInit = walineInit;
window.initWaline = function() {
walineInit({
+7 -2
View File
@@ -89,7 +89,7 @@
<script type="text/javascript">
$(document).ready(function () {
var currentPath = "\/post\/my-first-post\/";
currentPath = "\/post\/my-first-post\/";
fetchCommentsAndCreateBarrager(currentPath, {
@@ -126,7 +126,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/post\/my-first-post\/";</script>
<script>
var currentPath = "\/post\/my-first-post\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/post\/my-first-post\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+7 -2
View File
@@ -89,7 +89,7 @@
<script type="text/javascript">
$(document).ready(function () {
var currentPath = "\/post\/my-second-post\/";
currentPath = "\/post\/my-second-post\/";
fetchCommentsAndCreateBarrager(currentPath, {
@@ -126,7 +126,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/post\/my-second-post\/";</script>
<script>
var currentPath = "\/post\/my-second-post\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/post\/my-second-post\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+6 -1
View File
@@ -106,7 +106,12 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/says\/";</script>
<script>
var currentPath = "\/says\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/says\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
+7 -2
View File
@@ -97,14 +97,19 @@
<script src="/js/main.js"></script>
<script src="/js/mypjax.js"></script>
<script src="/js/nprogress.js"></script>
<script>var currentPath = "\/tags\/";</script>
<script>
var currentPath = "\/tags\/";
document.addEventListener("pjax:send", function () {
var currentPath = "\/tags\/";
});
</script>
<script type="module">
import { init as walineInit } from 'https://unpkg.com/@waline/client@v3/dist/waline.js';
window.walineInit = walineInit;
window.initWaline = function() {
walineInit({