Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议在Footer处新增网安备案填写处 #191

Closed
AH-dark opened this issue Aug 18, 2021 · 1 comment
Closed

建议在Footer处新增网安备案填写处 #191

AH-dark opened this issue Aug 18, 2021 · 1 comment

Comments

@AH-dark
Copy link
Contributor

AH-dark commented Aug 18, 2021

/footer.php约19行部分,我进行了以下修改

<div class="footer-copyright">
    <span class="copyright-mdx">Theme: MDx By <a href="https://flyhigher.top" target="_blank" class="click">AxtonYao</a></span>
    <span>
        <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802035663" target="_blank">
            <img src="https://i1-qiniu.s.ahdark.com/202108/18/6c0c61857bc13.png/index.webp" alt="网安备案"/>
            京公网安备 11010802035663号
        </a>
    </span>
    <?php if(!empty(mdx_get_option('mdx_icp_num'))){?><div class="mdx-copyright"><a href="https://beian.miit.gov.cn/" rel="noopener" target="_blank" class="click"><?php echo mdx_get_option('mdx_icp_num');?></a></div><?php }?>
</div>

并加入了以下样式

.footer-copyright{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
@media screen and (max-width: 700px){
    .footer-copyright{
        flex-direction: column;
    }
}

以此达到添加网安备案号的效果

1629281403130.png

实际添加不复杂,网安备案号的设置添加可以使用正则表达式提取数字部分或直接填写2个设置项,注意前边的小图标必须要添加(建议转换Base64)

@AH-dark AH-dark changed the title 尾部copyright部分建议重构,建议新增网安备案填写处 建议在Footer处新增网安备案填写处 Aug 18, 2021
@AH-dark
Copy link
Contributor Author

AH-dark commented Aug 18, 2021

算了待会我去提PR得了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant