C/C++教程

博客园主题推荐awescnb-自定义

本文主要是介绍博客园主题推荐awescnb-自定义,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

后台-设置

博客皮肤: Custom
image

页面定制 CSS 代码

#loading {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
  background-color: #f4f5f5;
  pointer-events: none;
}
.loader-inner {
  will-change: transform;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px;
  background-color: #3742fa;
  border-radius: 50%;
  animation: scaleout 0.6s infinite ease-in-out forwards;
  text-indent: -99999px;
  z-index: 999991;
}
@keyframes scaleout {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

禁用禁用模板默认CSS

勾选:
[√] 禁用模板默认CSS
image

博客侧边栏公告(支持HTML代码) (支持 JS 代码)

image

要去申请js权限,大概1h就好了!

<script src="https://guangzan.gitee.io/awescnb/index.js"></script>


<script>
$.awesCnb({
// 基本配置,在线切换主题
theme: {
name: 'geek', // 极客风格主题
//name: 'view', //宽阔视野主题
//name: 'simple', //  简约风格主题
//name: 'reacg', //二次元风格
//name: 'bilibili', //Bilibili


        color: '#FFB3CC',
        title: '',
        contentSize: 'mid',
        //背景图片地址
        headerBackground: 'https://www.www.weizhi.cc/i/l/?n=20&i=blog/2129350/202009/2129350-20200901200713499-999477266.jpg',
        //头像图片地址
        avatar: 'https://images.cnblogs.com/cnblogs_com/levi125/1849234/o_201013092146Snipaste_2020-10-13_17-21-26.jpg',
        favicon: '',
    },
links: [
 {
        name: '收藏夹',
        link: 'https://wz.cnblogs.com/',
    }
    //,
    //{
    //    name: '自定义菜单名',
    //    link: '跳转链接',
    //}
],
notice:{
    enable: false
},
signature: {
    enable: false, //是否开启个性签名
    contents: [
    "个性签名、<b style='color:#ff6b81'>颜色,加粗的</b>"
    ],
},
darkMode: {
    enable: true    
},
postTopimage: {
    enable: true,
    imgs: [],
    position: 'top',
},
highLight: {
    type: 'atomOneLight'
},
lineNumbers: {
    enable: true
},
catalog: {
    enable: true,
    position: 'left',
},
back2top: {
    enable: true,
    type: 'simple',
},
tools: {
    enable: true,
    initialOpen: false,
    draggable: true,
},

})
</script>

更多插件配置参考:https://guangzan.gitee.io/awescnb-docs/options

页首 HTML 代码

<div id="loading"><div class="loader-inner"></div></div>

侧栏配置

最后,点击保存

这篇关于博客园主题推荐awescnb-自定义的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!