{"entry_id": "733dc980-9c79-4a9e-8581-2d2f0ddf253f", "infos": [{"txt": "Planet博客设置", "language": "chinese", "position": {"atoms": [{"position_id": 0, "txt": "Planet博客设置", "x": "//title"}]}, "tags": [], "label": "O", "web_segment_id": 0, "global_sentence_id": 0, "edu_l1_label": "EDU_O"}, {"txt": "Planet博客设置", "language": "chinese", "position": {"atoms": [{"position_id": 81, "txt": "Planet博客设置", "x": "/html/body/div/div[2]/h1"}]}, "tags": ["h1"], "label": "article_title", "web_segment_id": 1, "global_sentence_id": 1, "edu_l1_label": "BOT"}, {"txt": "2025年1月28日 22:31:42", "language": "chinese", "position": {"atoms": [{"position_id": 83, "txt": "2025年1月28日 22:31:42", "x": "/html/body/div/div[2]/div[1]"}]}, "tags": [], "label": "publish_time", "web_segment_id": 2, "global_sentence_id": 2, "edu_l1_label": "EDU_O"}, {"txt": "添加评论功能", "language": "chinese", "position": {"atoms": [{"position_id": 85, "txt": "添加评论功能", "x": "/html/body/div/div[2]/div[2]/h2[1]"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 3, "global_sentence_id": 3, "edu_l1_label": "BOS"}, {"txt": "使用Giscus为Planet添加评论功能。", "language": "chinese", "position": {"atoms": [{"position_id": 87, "txt": "使用", "x": "/html/body/div/div[2]/div[2]/p[1]"}, {"position_id": 89, "txt": "Giscus", "x": "/html/body/div/div[2]/div[2]/p[1]/a"}, {"position_id": 91, "txt": "为Planet添加评论功能。", "x": "/html/body/div/div[2]/div[2]/p[1]/a"}]}, "tags": [], "label": "content", "web_segment_id": 4, "global_sentence_id": 4, "edu_l1_label": "IOS"}, {"txt": "按要求建立公开仓库，安装 Giscus App，将仓库名 填入，之后会生成一个下面这种代码，将它添加到文章末尾即可，Planet 可以自动渲染出来。", "language": "chinese", "position": {"atoms": [{"position_id": 93, "txt": "按要求建立公开仓库，安装 Giscus App，将仓库名 填入，之后会生成一个下面这种代码，将它添加到文章末尾即可，Planet 可以自动渲染出来。", "x": "/html/body/div/div[2]/div[2]/p[2]"}]}, "tags": [], "label": "content", "web_segment_id": 5, "global_sentence_id": 5, "edu_l1_label": "IOS"}, {"txt": "# 不要复制我的，仅作参考，Giscus网页会生成自己的<script src=\"https://giscus.app/client.js\"        data-repo=\"用户名/仓库名\"        data-repo-id=\"R_kgDONv0EQg\"        data-category=\"Announcements\"        data-category-id=\"DIC_kwDONv0EQs4CmW3b\"        data-mapping=\"pathname\"        data-strict=\"0\"        data-reactions-enabled=\"1\"        data-emit-metadata=\"0\"        data-input-position=\"bottom\"        data-theme=\"preferred_color_scheme\"        data-lang=\"zh-CN\"        crossorigin=\"anonymous\"        async></script>", "language": "chinese", "position": {"atoms": [{"position_id": 95, "txt": "# 不要复制我的，仅作参考，Giscus网页会生成自己的\n<script src=\"https://giscus.app/client.js\"\n        data-repo=\"用户名/仓库名\"\n        data-repo-id=\"R_kgDONv0EQg\"\n        data-category=\"Announcements\"\n        data-category-id=\"DIC_kwDONv0EQs4CmW3b\"\n        data-mapping=\"pathname\"\n        data-strict=\"0\"\n        data-reactions-enabled=\"1\"\n        data-emit-metadata=\"0\"\n        data-input-position=\"bottom\"\n        data-theme=\"preferred_color_scheme\"\n        data-lang=\"zh-CN\"\n        crossorigin=\"anonymous\"\n        async>\n</script>\n", "x": "/html/body/div/div[2]/div[2]/pre[1]/code"}]}, "tags": [], "label": "code", "web_segment_id": 6, "global_sentence_id": 6, "edu_l1_label": "EDU_O"}, {"txt": "修改模板代码添加Google Analytics分析", "language": "chinese", "position": {"atoms": [{"position_id": 97, "txt": "修改模板代码添加Google Analytics分析", "x": "/html/body/div/div[2]/div[2]/h2[2]"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 7, "global_sentence_id": 7, "edu_l1_label": "BOS"}, {"txt": "Google Analytics 用 Google 账号登录建立账户，再建立一个资源，获取 Google Analytics 统计代码，他会提供一串代码。", "language": "chinese", "position": {"atoms": [{"position_id": 99, "txt": "Google Analytics", "x": "/html/body/div/div[2]/div[2]/p[3]/a"}, {"position_id": 101, "txt": " 用 Google 账号登录建立账户，再建立一个资源，获取 Google Analytics 统计代码，他会提供一串代码。", "x": "/html/body/div/div[2]/div[2]/p[3]/a"}]}, "tags": [], "label": "content", "web_segment_id": 8, "global_sentence_id": 8, "edu_l1_label": "IOS"}, {"txt": "类似这样：", "language": "chinese", "position": {"atoms": [{"position_id": 102, "txt": "类似这样：", "x": "/html/body/div/div[2]/div[2]/p[3]/a"}]}, "tags": [], "label": "content", "web_segment_id": 8, "global_sentence_id": 9, "edu_l1_label": "IOS"}, {"txt": "# 参考<!-- Google tag (gtag.js) --> <script async src=\"https://www.googletagmanager.com/gtag/js?id=G-代码\"></script> <script>   window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());     gtag('config', 'G-代码'); </script>", "language": "chinese", "position": {"atoms": [{"position_id": 104, "txt": "# 参考\n<!-- Google tag (gtag.js) --> \n<script async src=\"https://www.googletagmanager.com/gtag/js?id=G-代码\"></script> \n<script> \n  window.dataLayer = window.dataLayer || []; \n  function gtag(){dataLayer.push(arguments);} \n  gtag('js', new Date()); \n  \n  gtag('config', 'G-代码'); \n</script>\n", "x": "/html/body/div/div[2]/div[2]/pre[2]/code"}]}, "tags": [], "label": "code", "web_segment_id": 6, "global_sentence_id": 10, "edu_l1_label": "EDU_O"}, {"txt": "在 Planet 中打开左上菜单中的 工具-模板浏览器，选择你正在使用的模板，在文件夹中打开即可查看HTML模板文件。", "language": "chinese", "position": {"atoms": [{"position_id": 106, "txt": "在 Planet 中打开左上菜单中的 工具-模板浏览器，选择你正在使用的模板，在文件夹中打开即可查看HTML模板文件。", "x": "/html/body/div/div[2]/div[2]/p[4]"}]}, "tags": [], "label": "content", "web_segment_id": 9, "global_sentence_id": 11, "edu_l1_label": "IOS"}, {"txt": "编辑模板文件中的templates/base.html，用 VScode 或其他工具，将获取到的统计代码插入到<head>下方，点击 工具-重新载入网站，重新生成静态页面即可。", "language": "chinese", "position": {"atoms": [{"position_id": 107, "txt": "编辑模板文件中的", "x": "/html/body/div/div[2]/div[2]/p[4]"}, {"position_id": 109, "txt": "templates/base.html", "x": "/html/body/div/div[2]/div[2]/p[4]/code[1]"}, {"position_id": 111, "txt": "，用 VScode 或其他工具，将获取到的统计代码插入到", "x": "/html/body/div/div[2]/div[2]/p[4]/code[1]"}, {"position_id": 113, "txt": "<head>", "x": "/html/body/div/div[2]/div[2]/p[4]/code[2]"}, {"position_id": 115, "txt": "下方，点击 工具-重新载入网站，重新生成静态页面即可。", "x": "/html/body/div/div[2]/div[2]/p[4]/code[2]"}]}, "tags": [], "label": "content", "web_segment_id": 9, "global_sentence_id": 12, "edu_l1_label": "IOS"}, {"txt": "在配置Google Analytics时需要有对应域名，所以使用公共网关或者本地IPFS节点访问的话似乎无法被GA追踪到。", "language": "chinese", "position": {"atoms": [{"position_id": 117, "txt": "在配置Google Analytics时需要有对应域名，所以使用公共网关或者本地IPFS节点访问的话似乎无法被GA追踪到。", "x": "/html/body/div/div[2]/div[2]/p[5]"}]}, "tags": [], "label": "content", "web_segment_id": 10, "global_sentence_id": 13, "edu_l1_label": "IOS"}, {"txt": "我的Privacy页面也有介绍。", "language": "chinese", "position": {"atoms": [{"position_id": 118, "txt": "我的", "x": "/html/body/div/div[2]/div[2]/p[5]"}, {"position_id": 120, "txt": "Privacy", "x": "/html/body/div/div[2]/div[2]/p[5]/a"}, {"position_id": 122, "txt": "页面也有介绍。", "x": "/html/body/div/div[2]/div[2]/p[5]/a"}]}, "tags": [], "label": "content", "web_segment_id": 10, "global_sentence_id": 14, "edu_l1_label": "IOS"}, {"txt": "域名", "language": "chinese", "position": {"atoms": [{"position_id": 124, "txt": "域名", "x": "/html/body/div/div[2]/div[2]/h2[3]"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 11, "global_sentence_id": 15, "edu_l1_label": "BOS"}, {"txt": "注册一个区块链域名，.eth.bit.sol 都可以绑定IPNS，然后通过相应的公网访问。", "language": "chinese", "position": {"atoms": [{"position_id": 126, "txt": "注册一个区块链域名，", "x": "/html/body/div/div[2]/div[2]/p[6]"}, {"position_id": 128, "txt": ".eth", "x": "/html/body/div/div[2]/div[2]/p[6]/code[1]"}, {"position_id": 130, "txt": ".bit", "x": "/html/body/div/div[2]/div[2]/p[6]/code[2]"}, {"position_id": 132, "txt": ".sol", "x": "/html/body/div/div[2]/div[2]/p[6]/code[3]"}, {"position_id": 134, "txt": " 都可以绑定IPNS，然后通过相应的公网访问。", "x": "/html/body/div/div[2]/div[2]/p[6]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 12, "global_sentence_id": 16, "edu_l1_label": "IOS"}, {"txt": "我目前有一个.bit域名，在后台绑定IPNS后，可以通过.bit.site这个公共节点访问，它为.bit域名提供免费的IPFS PIN服务，绑定后它会存储Planet中的静态内容，这样也就不怕电脑关闭就无法访问了。", "language": "chinese", "position": {"atoms": [{"position_id": 136, "txt": "我目前有一个", "x": "/html/body/div/div[2]/div[2]/p[7]"}, {"position_id": 138, "txt": ".bit", "x": "/html/body/div/div[2]/div[2]/p[7]/code[1]"}, {"position_id": 140, "txt": "域名，在后台绑定IPNS后，可以通过", "x": "/html/body/div/div[2]/div[2]/p[7]/code[1]"}, {"position_id": 142, "txt": ".bit.site", "x": "/html/body/div/div[2]/div[2]/p[7]/code[2]"}, {"position_id": 144, "txt": "这个公共节点访问，它为", "x": "/html/body/div/div[2]/div[2]/p[7]/code[2]"}, {"position_id": 146, "txt": ".bit", "x": "/html/body/div/div[2]/div[2]/p[7]/code[3]"}, {"position_id": 148, "txt": "域名提供免费的IPFS PIN服务，绑定后它会存储Planet中的静态内容，这样也就不怕电脑关闭就无法访问了。", "x": "/html/body/div/div[2]/div[2]/p[7]/code[3]"}]}, "tags": [], "label": "content", "web_segment_id": 13, "global_sentence_id": 17, "edu_l1_label": "IOS"}, {"txt": "目前比较推荐.sol域名，.eth太贵了，.bit不太贵，不过需要按年付费，而.sol是永久的，一次付费即可，基于Solana链，我正准备搞一个。", "language": "chinese", "position": {"atoms": [{"position_id": 150, "txt": "目前比较推荐", "x": "/html/body/div/div[2]/div[2]/p[8]"}, {"position_id": 152, "txt": ".sol", "x": "/html/body/div/div[2]/div[2]/p[8]/code[1]"}, {"position_id": 154, "txt": "域名，", "x": "/html/body/div/div[2]/div[2]/p[8]/code[1]"}, {"position_id": 156, "txt": ".eth", "x": "/html/body/div/div[2]/div[2]/p[8]/code[2]"}, {"position_id": 158, "txt": "太贵了，", "x": "/html/body/div/div[2]/div[2]/p[8]/code[2]"}, {"position_id": 160, "txt": ".bit", "x": "/html/body/div/div[2]/div[2]/p[8]/code[3]"}, {"position_id": 162, "txt": "不太贵，不过需要按年付费，而", "x": "/html/body/div/div[2]/div[2]/p[8]/code[3]"}, {"position_id": 164, "txt": ".sol", "x": "/html/body/div/div[2]/div[2]/p[8]/code[4]"}, {"position_id": 166, "txt": "是永久的，一次付费即可，基于Solana链，我正准备搞一个。", "x": "/html/body/div/div[2]/div[2]/p[8]/code[4]"}]}, "tags": [], "label": "content", "web_segment_id": 14, "global_sentence_id": 18, "edu_l1_label": "IOS"}, {"txt": "IPFS托管", "language": "chinese", "position": {"atoms": [{"position_id": 168, "txt": "IPFS托管", "x": "/html/body/div/div[2]/div[2]/h2[4]"}]}, "tags": ["h2"], "label": "title1", "web_segment_id": 15, "global_sentence_id": 19, "edu_l1_label": "BOS"}, {"txt": "我还使用4EVERLAND来对IPFS文件进行托管，进入官网连接加密钱包，之后需存入1美元等值的对应加密货币，就可以使用它提供的服务。", "language": "chinese", "position": {"atoms": [{"position_id": 170, "txt": "我还使用", "x": "/html/body/div/div[2]/div[2]/p[9]"}, {"position_id": 172, "txt": "4EVERLAND", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}, {"position_id": 174, "txt": "来对IPFS文件进行托管，进入官网连接加密钱包，之后需存入1美元等值的对应加密货币，就可以使用它提供的服务。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 20, "edu_l1_label": "IOS"}, {"txt": "可以托管IPNS、IPFS、连接GitHub仓库等等。", "language": "chinese", "position": {"atoms": [{"position_id": 175, "txt": "可以托管IPNS、IPFS、连接GitHub仓库等等。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 21, "edu_l1_label": "IOS"}, {"txt": "还提供S3对象存储。", "language": "chinese", "position": {"atoms": [{"position_id": 176, "txt": "还提供S3对象存储。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 22, "edu_l1_label": "IOS"}, {"txt": "当然我只使用了IPNS托管。", "language": "chinese", "position": {"atoms": [{"position_id": 177, "txt": "当然我只使用了IPNS托管。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 23, "edu_l1_label": "IOS"}, {"txt": "从Planet中复制出IPNS，在4EVERLAND中新建Hosting项目，选择IPNS并填入。", "language": "chinese", "position": {"atoms": [{"position_id": 178, "txt": "从Planet中复制出IPNS，在4EVERLAND中新建Hosting项目，选择IPNS并填入。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 24, "edu_l1_label": "IOS"}, {"txt": "它给提供2个子域名来访问，你也可以绑定自己域名。", "language": "chinese", "position": {"atoms": [{"position_id": 179, "txt": "它给提供2个子域名来访问，你也可以绑定自己域名。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 25, "edu_l1_label": "IOS"}, {"txt": "记得在设定中开启自动重新部署IPNS，这样它每天18:", "language": "chinese", "position": {"atoms": [{"position_id": 180, "txt": "记得在设定中开启自动重新部署IPNS，这样它每天18:", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 26, "edu_l1_label": "IOS"}, {"txt": "00会自动进行同步，如果需要即时同步可以手动操作。", "language": "chinese", "position": {"atoms": [{"position_id": 181, "txt": "00会自动进行同步，如果需要即时同步可以手动操作。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 27, "edu_l1_label": "IOS"}, {"txt": "我只是把它作为一个PIN服务和作为备份，所以就让它自动同步好了。", "language": "chinese", "position": {"atoms": [{"position_id": 182, "txt": "我只是把它作为一个PIN服务和作为备份，所以就让它自动同步好了。", "x": "/html/body/div/div[2]/div[2]/p[9]/a"}]}, "tags": [], "label": "content", "web_segment_id": 16, "global_sentence_id": 28, "edu_l1_label": "IOS"}, {"txt": "<img https://media.joomaen.top/2025/01/1738074288.png", "language": "chinese", "position": {"atoms": [{"position_id": 71, "txt": "<img https://media.joomaen.top/2025/01/1738074288.png", "x": "/html/body/div/div[2]/div[2]/p[9]/img"}]}, "tags": ["img"], "label": "figure", "web_segment_id": 16, "global_sentence_id": 29, "edu_l1_label": "IOS"}, {"txt": "小结", "language": "chinese", "position": {"atoms": [{"position_id": 184, "txt": "小结", "x": "/html/body/div/div[2]/div[2]/h3"}]}, "tags": ["h3"], "label": "title1", "web_segment_id": 18, "global_sentence_id": 30, "edu_l1_label": "BOS"}, {"txt": "这一番操作下来，使得Planet这个静态IPFS博客更加可靠和方便访问，也有了评论支持。", "language": "chinese", "position": {"atoms": [{"position_id": 186, "txt": "这一番操作下来，使得Planet这个静态IPFS博客更加可靠和方便访问，也有了评论支持。", "x": "/html/body/div/div[2]/div[2]/p[10]"}]}, "tags": [], "label": "content", "web_segment_id": 19, "global_sentence_id": 31, "edu_l1_label": "IOS"}, {"txt": "当然RSS也是支持的，任意一个网关或域名访问/rss.xml即可订阅。", "language": "chinese", "position": {"atoms": [{"position_id": 187, "txt": "当然RSS也是支持的，任意一个网关或域名访问", "x": "/html/body/div/div[2]/div[2]/p[10]"}, {"position_id": 189, "txt": "/rss.xml", "x": "/html/body/div/div[2]/div[2]/p[10]/code"}, {"position_id": 191, "txt": "即可订阅。", "x": "/html/body/div/div[2]/div[2]/p[10]/code"}]}, "tags": [], "label": "content", "web_segment_id": 19, "global_sentence_id": 32, "edu_l1_label": "IOS"}, {"txt": "这样看来，似乎WordPress也不是很必要了。", "language": "chinese", "position": {"atoms": [{"position_id": 193, "txt": "这样看来，似乎WordPress也不是很必要了。", "x": "/html/body/div/div[2]/div[2]/p[11]"}]}, "tags": [], "label": "content", "web_segment_id": 20, "global_sentence_id": 33, "edu_l1_label": "IOS"}], "type": "WEB"}
# Planet博客设置
## 添加评论功能
## 修改模板代码添加Google Analytics分析
## 域名
## IPFS托管
## 小结
