希望提供备案配置功能

Author: zsh2401Created Sep 20, 2020Updated Apr 9, 2024
Labelsfeature:core

你的功能建议与某个使用问题相关么?请详述。

很多博客网站备案了,并且官方是要求显示备案信息的.

描述你想要的解决方案

希望icarus支持配置备案信息

描述你考虑过的替代办法

在icarus 3中,我通过自定义common/footer.jsx来实现备案信息和编译时间的显示

javascript
<div style={{
                            width: "300px",
                            margin: "0 auto",
                            padding: "5px 0"
                        }}>
                            <img src="/images/beian/gongan.png"></img>
                            <a target="_blank"
                                href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=5301810XXXXXX"
                                style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
                                <p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;">滇公网安备
                                    53018102XXXXXX号</p>
                            </a>
                        </div>



                        <a target="_blank" href="http://www.beian.miit.gov.cn/">滇ICP备XXXXXX号</a><br />

                        <p>编译时间: {dfmt(new Date(), "yy/MM/dd HH:mm:ss")}</p>

但到了icarus 4时,跑去node_modules里进行修改显然不太对头,虽然依然可以通过传统方式安装,但如果官方能支持就更好了.

额外上下文

无

Source: ppoffice/hexo-theme-icarus