File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "explorer.sortOrder" : " modified"
2+ "explorer.sortOrder" : " modified" ,
3+ // "[html]": {
4+ // "editor.formatOnSave": false
5+ // },
36}
Original file line number Diff line number Diff line change @@ -34,4 +34,14 @@ comments: false
3434
3535找到我:
3636
37- 请使用 ` texsd dot tt29 at outlook dot com `
37+ 请使用 ` texsd dot tt29 at outlook dot com `
38+
39+ ---
40+
41+ 关于站点:
42+
43+ 本站使用 Blowfish 主题,基于 Hugo。
44+
45+ - 头像 [ @FURLESS_ ] ( https://space.bilibili.com/588453/dynamic )
46+ - 首页背景图 [ @木子森森森] ( https://www.pixiv.net/users/14292311 )
47+ - 友链背景图 [ @雪菜] ( https://space.bilibili.com/13225909 )
Original file line number Diff line number Diff line change 1+ <!-- 引入 Barba.js 和 GSAP 实现淡入淡出效果 -->
12<!doctype html>
23< html
34 lang ="{{ with site.Params.isoCode | default (site.LanguageCode | default `en`) }}{{- . -}}{{ end }} "
Original file line number Diff line number Diff line change 1- <!-- 引入 Barba.js 和 GSAP -->
1+ <!-- 引入 Barba.js 和 GSAP 实现淡入淡出效果 -->
22< script src ="https://cdn.jsdelivr.net/npm/@barba/core "> </ script >
33< script src ="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js "> </ script >
44
2727 barba . hooks . after ( ( ) => {
2828 // 等待新页面的 DOM 完全准备好
2929 setTimeout ( ( ) => {
30- // 方法1 :触发 resize,让主题重新计算位置
30+ // 方法 1 :触发 resize,让主题重新计算位置
3131 window . dispatchEvent ( new Event ( 'resize' ) ) ;
32-
33- // 方法2 :手动修复菜单 active 类(针对 basic.html 中的逻辑)
32+
33+ // 方法 2 :手动修复菜单 active 类(针对 basic.html 中的逻辑)
3434 if ( typeof $ !== 'undefined' ) {
3535 // 清除所有菜单项上的 active 类
36- $ ( 'nav a, header a, .menu-item' ) . each ( function ( ) {
36+ $ ( 'nav a, header a, .menu-item' ) . each ( function ( ) {
3737 $ ( this ) . removeClass ( 'active' ) ;
3838 $ ( this ) . find ( 'p' ) . removeClass ( 'active' ) ; // 对应 basic.html 中的 $(e).children("p").addClass("active")
3939 } ) ;
40-
40+
4141 // 根据当前 URL 重新添加 active 类
4242 const currentPath = window . location . pathname ;
43- $ ( 'nav a, header a, .menu-item' ) . each ( function ( ) {
43+ $ ( 'nav a, header a, .menu-item' ) . each ( function ( ) {
4444 const $link = $ ( this ) ;
4545 const href = $link . attr ( 'href' ) ;
4646 if ( href === currentPath || ( href !== '/' && currentPath . startsWith ( href ) ) ) {
5252 }
5353 } , 50 ) ;
5454 } ) ;
55- </ script >
55+ </ script >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <!-- 友情链接 -->
12< div class ="article-list--compact links ">
23 {{- range .Page.Params.links -}}
34 < article >
Original file line number Diff line number Diff line change 1+ <!-- 这个原始功能是在自定义 css 里面写的 -->
12< div class ="no-limit-code ">
23 {{ $lang := .Get 0 | default "text" }}
34 {{ highlight .Inner $lang }}
You can’t perform that action at this time.
0 commit comments