样式在页面最底下的链接里(Silence v3.0.0
),点进去就是某神仙写的样式安装指南 (点这里也行:link)
【upd 2021.1.21】已经更新为当前最新版本beta4
- 找到
.cnblogs-markdown .hljs
,在适当位置(就是font-family:
的地方)改成font-family:'Consolas','monospace',monospace,'Consolas'!important;;font-size:15px!important
,这样就会有代码高亮
js
<script>
window.$silence = {
// ...
avatar: 'https://img2020.cnblogs.com/blog/1943963/202011/1943963-20201112152036432-94355781.jpg',
favicon: 'https://blog-static.cnblogs.com/files/zzctommy/au5gi-nrcss-001.ico',
navbars: [{
title: '友链',
url: 'https://www.cnblogs.com/zzctommy/p/13781422.html'
},{
title:'关于我',
url:'https://www.cnblogs.com/zzctommy/p/13747122.html'
},{
title:'留言板',
url:'https://www.cnblogs.com/zzctommy/p/13749163.html'
}
],catalog: {
enable: true,
index: true,
active: false,
levels: ['h2', 'h3', 'h4']
},
defaultTheme: 'a',
defaultMode: 'dark'
};
</script>
<script src="https://cdn.jsdelivr.net/gh/esofar/cnblogs-theme-silence@3.0.0-beta2/dist/silence.min.js"></script>
感觉js还是beta2好所以就没换