xcatliu / pagic

A static site generator powered by Deno + React
https://pagic.org
MIT License
1.64k stars 104 forks source link

请问对pagic生成的页面如何添加备案号比较合适呢? #97

Closed 0xzhang closed 1 year ago

0xzhang commented 2 years ago

怎样添加备案号是合适的方式呢。需要做成一个插件吗?

0xzhang commented 2 years ago

修改了dist目录下的_footer.js,应该解决了这个问题。

const Footer = () => (React.createElement("footer", null,
    "Powered by\u00A0",
    React.createElement("a", { href: "https://github.com/xcatliu/pagic", target: "_blank" }, "Pagic"),
    React.createElement("br"),
    React.createElement("a", { href: "https://beian.miit.gov.cn/", target: "_blank" }, "京ICP备xxx号-1"),
    ));
export default Footer;
0xzhang commented 2 years ago

按照文档中的使用方式:https://pagic.cn/docs/config.html#footerpagic.config.tsx中添加footer应该是更合适的方式,但是似乎并不能正确生成对应的_footer.js