esofar / cnblogs-theme-silence

📖 一款专注于阅读的博客园主题
MIT License
2.03k stars 416 forks source link

博主可以把你cnblogs的配置发下吗?用3.0.0-beta4显示不了像你博客的格式 #130

Open zhangyj131 opened 3 years ago

zhangyj131 commented 3 years ago

已解决

zhangyj131 commented 3 years ago

目前3.0.0-beta4,无法显示归档、标签导航栏

esofar commented 3 years ago
 <script>
        window.$silence = {
            avatar: 'http://images.cnblogs.com/cnblogs_com/esofar/972540/o_avatar.jpg',
            favicon: 'https://files.cnblogs.com/files/esofar/favicon.ico',
            github:  'https://github.com/esofar',
            defaultMode: 'auto',
            defaultTheme: 'c',
            showNavAdmin: true,
            hljsln: false,
            navbars: [{
                title: '标签',
                url: 'https://www.cnblogs.com/esofar/tag/'
            }, {
                title: '归档',
                url: 'https://www.cnblogs.com/esofar/p/'
            },{
                title: '主题',
                target: '_blank',
                url: 'https://github.com/esofar/cnblogs-theme-silence/'
            } ],
            catalog: {
                enable: true,
                index: true,
                active: false,
                levels: ['h2', 'h3', 'h4'],
            },
            signature: {
                enable: true,
                author: null,
                license: ['署名-非商业性使用-相同方式共享 4.0 国际', 'https://creativecommons.org/licenses/by-nc-sa/4.0/'],
            },
            sponsor: {
                enable: true,
                text: 'Buy me a cup of coffee ☕.',
                paypal: null,
                wechat: 'https://images.cnblogs.com/cnblogs_com/esofar/972540/o_wechat.png',
                alipay: 'https://images.cnblogs.com/cnblogs_com/esofar/972540/o_alipay.png'
           },
       };
   </script>
<script src="https://cdn.jsdelivr.net/gh/esofar/cnblogs-theme-silence@3.0.0-beta4/dist/silence.min.js"></script>