首页 > 其他分享 >主题Cnblogs-Theme-SimpleMemory-2023-04-30

主题Cnblogs-Theme-SimpleMemory-2023-04-30

时间:2023-04-30 10:22:06浏览次数:52  
标签:Cnblogs 04 30 geekswg gitee io https com icon

前言

好久没来看CnBlog,准备更换一下主题,就记录下原主题,并感谢作者提供的这么好看的主题。
主题文档地址:Cnblogs-Theme-SimpleMemory

主题预览

主页
其他

主题设置

设置页面

主题配置代码

侧边栏公告 HTML

<script type="text/javascript">
    window.cnblogsConfig = {
        cnzz: "1280245132", //网站统计
        info: {
            name: '独 行 侠', // 用户名
            startDate: '2010-01-01', // 入园时间,年-月-日。入园时间查看方法:鼠标停留园龄时间上,会显示入园时间
            avatar: 'https://geekswg.gitee.io/static/img/mine.jpg', // 用户头像
            blogIcon: 'https://geekswg.gitee.io/static/img/favicon.ico',
        },
        banner: { //首页 每日一句话 ,jinrishici:每次刷新随机获取一句古诗词。one:每日获取一句话
            home: {
                title: [
                    '莫笑少年江湖梦,谁不少年梦江湖。','曾经年少立志三千里,如今踌躇百步无寸功。','懵懂半生,庸碌尘世中,转眼高堂皆白发,儿女蹒跚学堂中。','碎银几两催人老。',
                    '心仍少,皱纹却上眉目中,浮生醉酒回梦里。','青春人依旧,只叹时光太匆匆!',
                    '长风破浪会有时,直挂云帆济沧海。 ——《行路难》 李白',
                    '天生我材必有用,千金散尽还复来。 ——《将进酒》 李白',
                    '人生得意须尽欢,莫使金樽空对月。 ——《将进酒》李白',
                    '众里寻他千百度,蓦然回首,那人却在灯火阑珊处。','花自飘零水自流,一种相思,两种闲愁。此情无计可消除,才下眉头,却上心头。——《如梦令》','花径不曾缘客扫,蓬门今始为君开。——《客至》',
                    '人攀明月不可得,月行却与人相随。——《把酒问月》','会当凌绝顶,一览众山小。——《望岳》','但见新人笑,那闻旧人哭。——《佳人》','衣带渐宽终不悔,为伊消得人憔悴。——《凤栖梧》','莫愁前路无知己,天下谁人不识君。——高适《别董大》',
                    '曾经沧海难为水,除却巫山不是云。——元稹《离思五首·其四》',
                    '山穷水复疑无路,柳暗花明又一村。'
                ],
                titleSource: 'one',
                //设置首页背景图片
                background: [
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-0.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-1.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-2.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-3.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-4.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-5.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-6.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-7.webp",
                    "https://geekswg.gitee.io/SimpleMemory/imgs/home/wallhaven-8.webp",
                ],
            }
        },
        sidebar: { // 列表数据 ['导航名称', '链接', 'icon']
            navList: [
                ['写 博 客', 'https://i.cnblogs.com/posts/edit', 'icon-cnblogs'],
                ['留 言 板', 'https://www.cnblogs.com/geekswg/p/13047579.html', 'icon-activity_fill'],
                ['我的主页', 'https://geekswg.gitee.io/music', 'icon-homepage_fill'], 
                
                ['Github ', 'https://github.com/geekswg', 'icon-github'],
                ['我的码云', 'https://gitee.com/geekswg', 'icon-gitee'],
                //['给我写信', 'http://wpa.qq.com/msgrd?v=3&uin=1101303970&site=qq&menu=yes', 'icon-logo_QQ'],
                ['QQ在线', 'tencent://message/?uin=1101303970', 'icon-logo_QQ'],
                ['学习教程', 'https://www.runoob.com/', 'icon-logo_ie']
                ['音乐后台', 'https://player.ilt.me/admin/user/login', 'icon-logo_ie'],
            ],
            customList: {
                "沉迷学习": { // 标题
                    "data": [ // 列表数据 ['列表', '链接']
                        ['菜鸟教程', 'https://www.runoob.com/', 'icon-logo_ie'],
                        ['我的博客2', 'https://www.cnblogs.com/geekswg/'],
                        ['我的博客3', 'https://www.cnblogs.com/geekswg/'],
                    ],
                    "icon": "icon-brush_fill" // 配置图标,参考文档:定制化/字体图标库
                },
                "常用工具": { // 标题
                    "data": [ // 列表数据 ['列表', '链接']
                        ['Maven仓库', 'https://mvnrepository.com/'],
                        ['我的博客7', 'https://www.cnblogs.com/geekswg/', 'icon-logo_ie'],
                        ['我的博客8', 'https://www.cnblogs.com/geekswg/'],
                    ],
                    "icon": "icon-brush_fill" // 配置图标,参考文档:定制化/字体图标库
                },
            },
        },
        footer: {//页脚
            text: {
                left: '但行好事',
                right: '莫问前程',
                iconFont: {
                    icon: "icon-xl",
                    color: "red",
                    fontSize: "18px"
                }
            },
            style: 3,
        },
        links: {//友链
            footer: [
                ["BNDong", 'https://www.cnblogs.com/bndong'],
                ["申请坑位", 'https://msg.cnblogs.com/send/geekswg'],
                ["申请坑位", 'https://msg.cnblogs.com/send/geekswg'],
            ],
        },
        rtMenu: {//二维码
            qrCode: 'https://geekswg.gitee.io/SimpleMemory/imgs/myQRcode.png',
            reward: {
                alipay: 'https://geekswg.gitee.io/SimpleMemory/imgs/QRcode-alipay.png',
                wechatpay: 'https://geekswg.gitee.io/SimpleMemory/imgs/QRCode-wechat.jpg'
            },
            downScrollDom: '#blog_post_info_block',
        },
        switchDayNight: { //夜间模式切换
            enable: true,       // 是否开启日/夜间模式切换按钮
            nightMode: false,   // 强制夜间模式 (版本 >= v2.0.6)
            auto: {             // 自动切换相关配置
                enable: true,  // 开启自动切换
                dayHour: 5,     // 日间模式开始时间,整数型,24小时制
                nightHour: 20   // 夜间模式开始时间,整数型,24小时制
            }
        },
        animate: {//动画
            homeBanner: {
                enable: true, // 是否开启动效
                options: {
                    radius: 50,
                    density: 0.2,
                    color: 'random', // 颜色设置,“random” 为随机颜色
                    clearOffset: 0.3
                }
            },
            articleTitle: {//标题特效
                enable: true,
            },
            articleBanner: {
                enable: true,
            },
            background: {
                enable: true,
                options: {
                    colorSaturation: "60%",
                    colorBrightness: "50%",
                    colorAlpha: 0.5,
                    colorCycleSpeed: 5,
                    verticalPosition: "random",
                    horizontalSpeed: 200,
                    ribbonCount: 3,
                    strokeSize: 1,
                    parallaxAmount: -0.2,
                    animateSections: true
                }
            },
            /**
            mouse: {
                enable: true,
                options: {
                    size: 12, // 中心圆点的大小,单位 px
                    sizeF: 36 // 外部边框的大小,单位 px
                },
            }, */
        },
        articleSuffix: {
            copyrightHtml: "版权所有,未经授权,请勿随意转载!...",
            aboutHtml: "I am a good person",
        },
       loading:{//载入页
            rebound: {
				tension: 14,
				friction: 10
		    },
			spinner: {
				id: 'spinner',
				radius: 90,
				sides: 5,
				depth: 8,
				colors: {
					background: '#00272C',
					stroke: null,
					base: null,
					child: '#02C39A'
				},
				alwaysForward: true, // When false the spring will reverse normally.
				restAt: null, // A number from 0.1 to 0.9 || null for full rotation
				renderBase: false
			},
       },
       progressBar: { //顶部进度条样式
         color   : '#77b6ff',
         height  : '5px',
         duration: 0.5,
       },
       code: {
            type: 'hljs',
            options: {
                line: true,
                macStyle: true,
                maxHeight: '80vh',
                hljs: {
                    theme: 'atom-one-dark-reasonable',
                    languages: [],
                    
                },
            },
        },
    }

    // 友链配置
    window.cnblogsConfig.links.page = [{
            name: '我的博客',
            introduction: 'IT技术类博客',
            avatar: 'https://blog.dbnuo.com/images/avatar.gif',
            url: 'https://geekswg.gitee.io/music'
        },
        {
            name: 'BNDong',
            introduction: 'IT技术类博客',
            avatar: 'https://blog.dbnuo.com/images/avatar.gif',
            url: 'https://geekswg.gitee.io/music'
        },
    ];

</script>

<script src="https://cdn.jsdelivr.net/gh/BNDong/[email protected]/dist/simpleMemory.js" defer></script>

页面定制CSS

略,查看博客主题:

页脚HTML

<!-- require APlayer -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
<!-- require MetingJS -->
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>
<meting-js
    lrc-type="1"
    server="tencent" id='8138088068'
    type="playlist"
    order="random"
    fixed="true" mini="true" autoplay="true" theme="auto"
    auto="https://y.qq.com/n/yqq/playlist/8138088068.html"
>
</meting-js>
<!--
qq音乐源地址 -> 修改后地址
https://y.qq.com/n/ryqq/playlist/8138088068 -> https://y.qq.com/n/yqq/playlist/8138088068.html
-->

<!-- 页面统计 -->
<script type="text/javascript">
document.write('<div id="pageVisitInfo2" style="width:100%;position:fixed;bottom:6px;text-align:center;z-index:99;">'
+unescape("%3Cspan id='cnzz_stat_icon_1278974928'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z_stat.php%3Fid%3D1278974928%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E")+'</div>');
</script>
<!-- 页面统计 -->


<!--  右下角悬浮菜单 ========= -->
<!-- ===========侧边栏音乐插件========= -->
<!-- https://player.ilt.me/  提供支持 geekswg  -->
 <!--
 <script id="ilt" src="https://geekswg.gitee.io/player/js/player.js" key="b4c63958cd344d34a901fb1311673d65"></script> 
 https://player.ilt.me/admin/user/login 音乐管理后台地址
-->
<!-- ============侧边栏音乐插件========= -->




<!-- 鼠标特效 -->
<script>
// =====鼠标特效
function clickEffect() {
    let balls = [];
    let longPressed = false;
    let longPress;
    let multiplier = 0;
    let width,
    height;
    let origin;
    let normal;
    let ctx;
    const colours = ["#F73859", "#14FFEC", "#00E0FF", "#FF99FE", "#FAF15D"];
    const canvas = document.createElement("canvas");
    document.body.appendChild(canvas);
    canvas.setAttribute("style", "width: 100%; height: 100%; top: 0; left: 0; z-index: 99999; position: fixed; pointer-events: none;");
    const pointer = document.createElement("span");
    pointer.classList.add("pointer");
    document.body.appendChild(pointer);
    if (canvas.getContext && window.addEventListener) {
        ctx = canvas.getContext("2d");
        updateSize();
        window.addEventListener('resize', updateSize, false);
        loop();
        window.addEventListener("mousedown", function (e) {
            pushBalls(randBetween(10, 20), e.clientX, e.clientY);
            document.body.classList.add("is-pressed");
            longPress = setTimeout(function () {
                document.body.classList.add("is-longpress");
                longPressed = true;
            }, 500);
        }, false);
        window.addEventListener("mouseup", function (e) {
            clearInterval(longPress);
            if (longPressed == true) {
                document.body.classList.remove("is-longpress");
                pushBalls(randBetween(50 + Math.ceil(multiplier), 100 + Math.ceil(multiplier)), e.clientX, e.clientY);
                longPressed = false;
            }
            document.body.classList.remove("is-pressed");
        }, false);
        window.addEventListener("mousemove", function (e) {
            let x = e.clientX;
            let y = e.clientY;
            pointer.style.top = y + "px";
            pointer.style.left = x + "px";
        }, false);
    } else {
        console.log("canvas or addEventListener is unsupported!");
    }

    function updateSize() {
        canvas.width = window.innerWidth * 2;
        canvas.height = window.innerHeight * 2;
        canvas.style.width = window.innerWidth + 'px';
        canvas.style.height = window.innerHeight + 'px';
        ctx.scale(2, 2);
        width = (canvas.width = window.innerWidth);
        height = (canvas.height = window.innerHeight);
        origin = {
            x: width / 2,
            y: height / 2
        };
        normal = {
            x: width / 2,
            y: height / 2
        };
    }
    class Ball {
        constructor(x = origin.x, y = origin.y) {
            this.x = x;
            this.y = y;
            this.angle = Math.PI * 2 * Math.random();
            if (longPressed == true) {
                this.multiplier = randBetween(14 + multiplier, 15 + multiplier);
            } else {
                this.multiplier = randBetween(6, 12);
            }
            this.vx = (this.multiplier + Math.random() * 0.5) * Math.cos(this.angle);
            this.vy = (this.multiplier + Math.random() * 0.5) * Math.sin(this.angle);
            this.r = randBetween(8, 12) + 3 * Math.random();
            this.color = colours[Math.floor(Math.random() * colours.length)];
        }
        update() {
            this.x += this.vx - normal.x;
            this.y += this.vy - normal.y;
            normal.x = -2 / window.innerWidth * Math.sin(this.angle);
            normal.y = -2 / window.innerHeight * Math.cos(this.angle);
            this.r -= 0.3;
            this.vx *= 0.9;
            this.vy *= 0.9;
        }
    }
    function pushBalls(count = 1, x = origin.x, y = origin.y) {
        for (let i = 0; i < count; i++) {
            balls.push(new Ball(x, y));
        }
    }
    function randBetween(min, max) {
        return Math.floor(Math.random() * max) + min;
    }
    function loop() {
        ctx.fillStyle = "rgba(255, 255, 255, 0)";
        ctx.clearRect(0, 0, canvas.width, canvas.height);
        for (let i = 0; i < balls.length; i++) {
            let b = balls[i];
            if (b.r < 0)
                continue;
            ctx.fillStyle = b.color;
            ctx.beginPath();
            ctx.arc(b.x, b.y, b.r, 0, Math.PI * 2, false);
            ctx.fill();
            b.update();
        }
        if (longPressed == true) {
            multiplier += 0.2;
        } else if (!longPressed && multiplier >= 0) {
            multiplier -= 0.4;
        }
        removeBall();
        requestAnimationFrame(loop);
    }
    function removeBall() {
        for (let i = 0; i < balls.length; i++) {
            let b = balls[i];
            if (b.x + b.r < 0 || b.x - b.r > width || b.y + b.r < 0 || b.y - b.r > height || b.r < 0) {
                balls.splice(i, 1);
            }
        }
    }
}
// =====鼠标特效
clickEffect(); //调用
</script>
<!-- 鼠标特效 -->

<!-- 板娘 --> 
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">
<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>

结束

写在最后,返璞归真,切换更高效的主题,方便写作和浏览。
记录下曾经使用过的cnblog主题,仅此而已。
个人博客地址 :毕少侠-个人博客

标签:Cnblogs,04,30,geekswg,gitee,io,https,com,icon
From: https://www.cnblogs.com/geekswg/p/17364965.html

相关文章

  • 总结,从 766 开始(Div2 30)
    3.10A分块B 分数规划,以前没学过C推式子 3.11A推结论,先划分连续段,然后从一个长度>=k的连续段开始操作B推式子C平衡树套线段树(为了节省空间需要把内层线段树改成平衡树)或定期重构+树上差分+动态开点线段树,每个结点上有一棵线段树,每B次操作后向上合并 3.12......
  • 师大 2023.04 总结
    题目1:P10011A第1次提交提交通过。每次减去\(\max(n-n/2,x)\),边减边计数。题目2:P10021A第1次提交提交通过。\(cnt\)表示字符串有\(cnt\)对对应的字符不同。对于每组询问,因为只改变一个字符,看改变字符改变前和改变后和对应字符的关系(相同或不同),以改......
  • Hugging News #0428: HuggingChat 来啦
    每一周,我们的同事都会向社区的成员们发布一些关于HuggingFace相关的更新,包括我们的产品和平台更新、社区活动、学习资源和内容更新、开源库和模型更新等,我们将其称之为「HuggingNews」,本期HuggingNews有哪些有趣的消息,快来看看吧!HuggingChat来啦!我们认为需要有一个Ch......
  • Codeforces 1804H - Code Lock(状压 dp)
    对于一种排列方案,答案显然等于相邻字符在环上对应的劣弧长度之和。然后其实你可能会想到很多状压/折半搜索方法,包括但不限于枚举一半的信息然后折半搜后一半,但稍加思考会发现这些方案都避不开记录元素之间的相对顺序,而但凡涉及到这一点,复杂度都是阶乘起步。因此我们只能另辟蹊......
  • AT_abs300_e 题解
    一、题目描述:你有一个骰子,数字1~6可以被等概率扔到。初始时有一个数$ans=1$。当扔到数字$x$时,$ans=ans\timesx$。给你一个数字$n$,求$ans$能等于$n$的概率。$n<=1e18$。答案对$998244353$取模。 二、解题思路:当扔到$1$时,相当于......
  • 每日总结2023-04-29
    今天初步学习了kotlin语言在学习中认为比较重要的点:在学习字符串模板时,我们了解到,可以在单个变量名称前加上$符号。但是,如果您使用更复杂的表达式,就必须用大括号将该表达式括起来,并在大括号前添加$符号:${unreadCount+readCount}。用大括号括起来的表达式(即unreadCount+......
  • 【230429-4】求所有仅由1,2,3,4,5组成的没有重复数字的四位数的和
    【数学解法】由1,2,3,4,5组成的没有重复数字的四位数有A54=120个以千位为例,在此出现的1,2,3,4,5的几率是均等的,即每个数都出现了120/5=24次。也就是说,120个数的千位加起来是(1*24+2*24+3*24+4*24+5*24)*1000=15*24*1000同样的道理,120个数的百位加起来是(1*24+2*24+3*24+4*24+5*24)*100=15*2......
  • 2023-04-29:一个序列的 宽度 定义为该序列中最大元素和最小元素的差值。 给你一个整数
    2023-04-29:一个序列的宽度定义为该序列中最大元素和最小元素的差值。给你一个整数数组nums,返回nums的所有非空子序列的宽度之和由于答案可能非常大,请返回对109+7取余后的结果。子序列定义为从一个数组里删除一些(或者不删除)元素,但不改变剩下元素的顺序得到的数组......
  • 【愚公系列】2023年04月 .NET CORE工具案例-YARP反向代理
    (文章目录)前言1.YARP是什么YARP(YetAnotherReverseProxy)是一个轻量级的.NET反向代理。它支持HTTP和HTTPS协议,可以将请求转发到其他服务器上。YARP可以用于许多用途,包括加载平衡、内部网络隔离、隐藏内部服务器的IP地址等。它支持使用规则来转发请求,并且可以在......
  • 【230429-3】证明:任意给出九个空间格点,其至少有一对格点的奇偶性相同,且其中点坐标亦为
    【名词解释:格点】格点即三坐标都为整数的空间点,因其位置在虚拟的网格上故称格点。【格点奇偶性的八种情况】代码证明:packagetest230429;/***按奇偶性确定空间中格点的种类*格点,即xyz三坐标皆为整数的空间点*xyz为奇偶各有两种可能性,整体便有2^3=8种*8种意味着:一旦点......