基础设置

页面定制CSS
body {
cursor: url('https://files-cdn.cnblogs.com/files/miluluyo/cursora.ico'), auto;
}
页首html
<script type="text/javascript">
var a_idx = 0;
jQuery(document).ready(function($) {
$("body").click(function(e) {
var a = new Array("❤富强❤","❤民主❤","❤文明❤","❤和谐❤","❤自由❤","❤平等❤","❤公正❤","❤法治❤","❤爱国❤","❤敬业❤","❤诚信❤","❤友善❤");
var $i = $("<span></span>").text(a[a_idx]);
a_idx = (a_idx + 1) % a.length;
var x = e.pageX,
y = e.pageY;
$i.css({
"z-index": 999999999999999999999999999999999999999999999999999999999999999999999,
"top": y - 20,
"left": x,
"position": "absolute",
"font-weight": "bold",
"color": "rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"
});
$("body").append($i);
$i.animate({
"top": y - 180,
"opacity": 0
},
1500,
function() {
$i.remove();
});
});
});
</script>
页脚(主要)
<script src="https://blog-static.cnblogs.com/files/guangzan/loader.min.js"></script>
<script>
const opts = {
theme: {
name: 'geek',
color: '#FFB3CC',
title: '66title',
avatar: 'https://images.cnblogs.com/cnblogs_com/blogs/680427/galleries/1966059/o_220522025108_headimg.jpg',
favicon: 'https://images.cnblogs.com/cnblogs_com/blogs/680427/galleries/1966059/o_221102071530_9658683_bikini_bra_swimsuit.png',
headerBackground: 'https://files.dbnuo.com/wallpaper/wallhaven-83w372.webp',
},
highLight: {
enable: true,
},
lineNumbers: {
enable: true,
},
github: {
enable: true,
color: '#ffb3cc',
url: 'https://github.com/yub4by',
},
gitee: {
enable: true,
color: '#C71D23',
url: 'https://gitee.com/yub4by',
},
imagebox: {
enable: true,
},
catalog: {
enable: true,
position: 'left',
},
tools: {
enable: true,
initialOpen: true,
},
live2d: {
enable: true,
model: 'haru-01',
},
click: {
enable: true,
auto: false,
colors: ['#FF1461', '#18FF92', '#5A87FF', '#FBF38C'],
size: 30,
maxCount: 50,
},
emoji: {
enable: true,
},
darkMode: {
enable: true,
autoDark: false,
autoLight: false,
},
musicPlayer: {
enable: false,
page: 'all',
agent: 'pc',
autoplay: false,
volume: 0.4,
lrc: {
enable: false,
type: 1,
color: '',
},
audio: [
{
name: '404 not found',
artist: 'REOL',
url: 'https://guangzan.gitee.io/imagehost/awescnb/music/demo4.mp3',
cover: 'https://guangzan.gitee.io/imagehost/awescnb/music/demo.jpg',
lrc: ``,
},
],
},
postTopimage: {
enable: true,
imgs: [
'https://guangzan.gitee.io/imagehost/awescnb/images/anime/22.jpg',
'https://guangzan.gitee.io/imagehost/awescnb/images/anime/22.jpg',
],
},
postBottomimage: {
enable: true,
imgs: [
'https://guangzan.gitee.io/imagehost/awescnb/images/anime/22.jpg',
'https://guangzan.gitee.io/imagehost/awescnb/images/anime/22.jpg',
],
},
donation: {
enable: true,
qrcodes: [
'https://images.cnblogs.com/cnblogs_com/blogs/680427/galleries/1966059/o_220522030359_wechatpay.jpg',
'https://images.cnblogs.com/cnblogs_com/blogs/680427/galleries/1966059/o_220522030351_alipay.jpg'
],
},
signature: {
enable: true,
contents: [
"This theme is built with <b style='color:#ff6b81'>awescnb</b>.",
"<b>console.log(??);</b>",
],
},
qrcode: {
enable: true,
img: 'https://images.cnblogs.com/cnblogs_com/blogs/680427/galleries/1966059/o_220522030351_alipay.jpg',
desc: '微信公众号',
},
notice: {
enable: true,
text:['??双击导航条锁屏','??快去自定义通知吧'],
},
indexListImg: {
enable: true,
imgs: [
'https://guangzan.gitee.io/imagehost/awescnb/images/anime/22.jpg',
'https://guangzan.gitee.io/imagehost/awescnb/images/anime/22.jpg',
],
},
topProgress: {
enable: false,
},
postSignature: {
enable: true,
enableLicense: true,
content: ['这是一条自定义内容', '这是一条自定义内容'],
licenseName: '',
licenseLink: '',
},
bodyBackground: {
enable: true,
value: 'https://guangzan.gitee.io/imagehost/awescnb/images/anime/22.jpg',
opacity: 0.9,
repeat: false,
},
barrage: {
enable: false,
},
charts: {
enable: true,
labels: [
'Vue',
'React',
'Flutter',
'Java',
'NodeJs',
'TypeScript',
'CSS',
],
datasets: [
{
label: 'My First Chart',
data: [65, 59, 90, 81, 56, 55, 40],
fill: true,
backgroundColor: 'rgba(255, 99, 132, 0.2)',
borderColor: 'rgb(255, 99, 132)',
pointBackgroundColor: 'rgb(255, 99, 132)',
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: 'rgb(255, 99, 132)',
},
{
label: 'My Second Dataset',
data: [28, 48, 40, 19, 96, 27, 100],
fill: true,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
pointBackgroundColor: 'rgb(54, 162, 235)',
pointBorderColor: '#fff',
pointHoverBackgroundColor: '#fff',
pointHoverBorderColor: 'rgb(54, 162, 235)',
},
],
},
lock: {
enable: true,
background: 'https://cdn.jsdelivr.net/gh/yaosir0317/Cnblogs-Theme-SimpleMemory@v1.3.1/img/t1.jpg',
strings: [
'<i>一点真如本心</i>',
'<i>九分人间烟火</i>',
],
},
links: [
{
name: 'Unixcs',
link: 'https://unixcs.cnblogs.com/',
},
{
name: 'MARS',
link: 'http://h4ck.org.cn/',
},
{
name: 'NSOAS',
link: 'https://osdds.nsoas.org.cn/',
},
{
name: 'USGS',
link: 'https://www.usgs.gov/',
},
{
name: 'NASA',
link: 'https://www.nasa.gov/',
},
{
name: 'GSCloud',
link: 'http://www.gscloud.cn/',
},
{
name: 'Apply',
link: 'https://msg.cnblogs.com/send/yub4by',
},
],
}
$.awesCnb(opts)
</script>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)