<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Jiaxin's BLOG</title>
        <link>https://www.pengjiaxin.com/</link>
        <description>PENG Jiaxin's Web Powered by NotionNext</description>
        <lastBuildDate>Mon, 08 Jan 2024 12:43:54 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en-US</language>
        <copyright>All rights reserved 2024, PENG Jiaxin</copyright>
        <item>
            <title><![CDATA[同步Obsidian to Notion]]></title>
            <link>https://www.pengjiaxin.com/article/obsidian-notion</link>
            <guid>https://www.pengjiaxin.com/article/obsidian-notion</guid>
            <pubDate>Tue, 08 Aug 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[同步Obsidian markdown到 Notion 发布]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-22e63e4124bf4c32a0ed5eca82cac8d5"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-73a6020a0f134d4fb3c73a77f3f32901"><span class="notion-default">English version: [[Obsidian to Notion]]</span></div><blockquote class="notion-quote notion-block-37ffe129a5184937b8e6cb7c26723463"><div><span class="notion-default"></span></div><div class="notion-text notion-block-447298fb83bb4d8892951e8004b7245c"><span class="notion-default">更新： 已经更新到2.0.1版本，这个版本有了更直观的界面</span></div></blockquote><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-0a973bfb68e24d05bec05e35ad34b07a" data-id="0a973bfb68e24d05bec05e35ad34b07a"><span><div id="0a973bfb68e24d05bec05e35ad34b07a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0a973bfb68e24d05bec05e35ad34b07a" title="TODO"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">TODO</span></span></span></h2><div class="notion-to-do notion-block-dc7d1be1328949549bd565f38570102c"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-checked"><svg viewBox="0 0 14 14"><path d="M5.5 12L14 3.5 12.5 2l-7 7-4-4.003L0 6.499z"></path></svg></div></span><div class="notion-to-do-body notion-to-do-checked"><span class="notion-default">添加自定义表头功能</span></div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-8fb7cf1c6f8d4188a658519484f6b3b8"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-checked"><svg viewBox="0 0 14 14"><path d="M5.5 12L14 3.5 12.5 2l-7 7-4-4.003L0 6.499z"></path></svg></div></span><div class="notion-to-do-body notion-to-do-checked"><span class="notion-default">增加多数据库支持</span></div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-0881541b350846659a6f2544224e3f1f"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-unchecked"></div></span><div class="notion-to-do-body"><span class="notion-default">增加自定义tag功能</span></div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-569e54c0419d4cc89f0435cbb9315908"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-checked"><svg viewBox="0 0 14 14"><path d="M5.5 12L14 3.5 12.5 2l-7 7-4-4.003L0 6.499z"></path></svg></div></span><div class="notion-to-do-body notion-to-do-checked"><span class="notion-default">增加单个文件多数据支持</span></div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-eac74c26806b4ff99b18b3ca915d6fcc"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-checked"><svg viewBox="0 0 14 14"><path d="M5.5 12L14 3.5 12.5 2l-7 7-4-4.003L0 6.499z"></path></svg></div></span><div class="notion-to-do-body notion-to-do-checked"><span class="notion-default">允许添加额外数据库</span></div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-b58165b043794a0f803c67efa3bf6fcb"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-checked"><svg viewBox="0 0 14 14"><path d="M5.5 12L14 3.5 12.5 2l-7 7-4-4.003L0 6.499z"></path></svg></div></span><div class="notion-to-do-body notion-to-do-checked"><span class="notion-default">预览数据库详情</span></div></div><div class="notion-to-do-children"></div></div><div class="notion-to-do notion-block-d4be5f54b5cc4bd4832f8820072569f3"><div class="notion-to-do-item"><span class="notion-property notion-property-checkbox"><div class="notion-property-checkbox-checked"><svg viewBox="0 0 14 14"><path d="M5.5 12L14 3.5 12.5 2l-7 7-4-4.003L0 6.499z"></path></svg></div></span><div class="notion-to-do-body notion-to-do-checked"><span class="notion-default">编辑数据库详情</span></div></div><div class="notion-to-do-children"></div></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1cf4c83a85964e23821c9f483c52af4e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://minioapi.pjx.ac.cn/img1/2024/01/062ebb87d76d27a473c74e8322c2eb03.png?t=1cf4c83a-8596-4e23-821c-9f483c52af4e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-c8b5cc3d50264b08acc4b6bb96ad139a"><span class="notion-default">预览：
</span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-8a6379b0e4a14984ac99ecf9ea8ecaf3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://minioapi.pjx.ac.cn/img1/2024/01/79d7105fc326f19e0e0dfa2c6338218f.png?t=8a6379b0-e4a1-4984-ac99-ecf9ea8ecaf3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-c506a2535f4442b9a0a49a15191e8d5c"><span class="notion-default">编辑：
</span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-f41086b97de8498faaac4a3cbf7e97b3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://minioapi.pjx.ac.cn/img1/2024/01/ded3d62660f5488c76488304a3fb269e.png?t=f41086b9-7de8-498f-aaac-4a3cbf7e97b3" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-ba779ca24bc147a98fdb43f30433fe52"><span class="notion-default"><b>以下是原文</b></span></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-7092c6aecc8b412a841d13ed25cafcf2" data-id="7092c6aecc8b412a841d13ed25cafcf2"><span><div id="7092c6aecc8b412a841d13ed25cafcf2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7092c6aecc8b412a841d13ed25cafcf2" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">前言</span></span></span></h2><div class="notion-text notion-block-e7c1017775434cbfaaff60148447ae5d"><span class="notion-default">在几个月之前，我就看到了大佬开发的打通Obsidian和Notion的插件</span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/EasyChris/obsidian-to-notion">obsidian-to-notion</a></span><span class="notion-default">。 那是非常好用，方便了很多。</span></div><div class="notion-text notion-block-e367e05626024168be1ee10e802b38b7"><span class="notion-default">然后又因为我是用了另外一个NotionNext把Notion 的page直接部署在了Vercel上边。这就造成了一个问题：
平时记笔记写东西都是在obsidian完成的，但是如果想要发布还得跑到Notion去。但是如果用Obsidian编辑，然后再通过插件分享到Notion，就需要完成四个步骤：
1. 在Obsidian完成创作。</span></div><ol start="1" class="notion-list notion-list-numbered notion-block-d97ad6f0160e4647a8aa6096a17c7f42"><li><span class="notion-default">通过插件分享到Notion的共享仓库。</span></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-4018e297aa8f438aa8f8c382148117d9"><li><span class="notion-default">从共享数据库中把文章给粘贴过去。</span></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-cf12158e412d4fa2a05dfa8ebbec246f"><li><span class="notion-default">然后修改每一个表头。</span></li></ol><div class="notion-text notion-block-7b00f5ecc6b947ad826917106209e0bb"><span class="notion-default">如果完成以上步骤，会相当繁琐。如果在Obsidian修改了文章，还需要重新操作以上步骤。所以有一段时间，为了能把东西发到网页上，都是直接在Notion上编辑的。</span></div><div class="notion-text notion-block-571c13e026cc43a9ab04ee058001ac3a"><span class="notion-default">但是最近，我研究了一下Notion的API使用方法。然后在原作者的基础之上，对插件进行了修改，现在已经完全支持NotionNext的数据表了。</span></div><div class="notion-text notion-block-c570a01e0dbc4c85b8c1785a58fe2946"><span class="notion-default">效果如下：
</span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-bd1498c768224e188d5b5c1c577c3a8d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://minioapi.pjx.ac.cn/img1/2023/09/6063dd06eea4ee6939b5058dd129a698.gif?t=bd1498c7-6822-4e18-8d5b-5c1c577c3a8d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-dc85df4658c445888b60ad450d3aafcb"><span class="notion-default">如果大家有需求，可以去</span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/jxpeng98/obsidian-to-NotionNext">我的仓库</a></span><span class="notion-default">下载使用。插件已经提交给官方了，之后应该就可以直接从Obsidian安装了。</span></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-455a6d2934cf4e15b80ec2573817d1b9" data-id="455a6d2934cf4e15b80ec2573817d1b9"><span><div id="455a6d2934cf4e15b80ec2573817d1b9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#455a6d2934cf4e15b80ec2573817d1b9" title="使用介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">使用介绍</span></span></span></h2><div class="notion-text notion-block-535f74ca227f4b9c9e3482b239d41d46"><span class="notion-default">在仓库的readme文件中有详细的介绍。你也可以按照如下进行操作：</span></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-9bfb2e9630ea456b9f628b3d8d931a65" data-id="9bfb2e9630ea456b9f628b3d8d931a65"><span><div id="9bfb2e9630ea456b9f628b3d8d931a65" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9bfb2e9630ea456b9f628b3d8d931a65" title="注意事项"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">注意事项</span></span></span></h4><div class="notion-text notion-block-6df9c38f73b344319ce1ac1a64b6dc27"><span class="notion-default">本插件现在暂时只能用于匹配</span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/tangly1024/NotionNext">NotionNext</a></span><span class="notion-default">。如果你不是使用这个模板，你只会无限返回</span><span class="notion-default"><code class="notion-inline-code">error 400</code></span><span class="notion-default">.</span></div><div class="notion-text notion-block-cf31abe6788a4846b2272d2154453808"><span class="notion-default">所以没有NotionNext需求的，请使用原作者的</span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/EasyChris/obsidian-to-notion">Obsidian-to-notion</a></span></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-b0fcb5d6e35b415592054ff1dff3170e" data-id="b0fcb5d6e35b415592054ff1dff3170e"><span><div id="b0fcb5d6e35b415592054ff1dff3170e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b0fcb5d6e35b415592054ff1dff3170e" title="准备安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">准备安装</span></span></span></h4><div class="notion-text notion-block-dbddbed8cfbf477482a1da669ec73831"><span class="notion-default">在安装插件之前，你必须配置好了以下内容：</span></div><ol start="1" class="notion-list notion-list-numbered notion-block-fb35d021824147fb8e4658fc7bcfc030"><li><span class="notion-default">你的NotionNext数据库。</span></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3373e20076634e46bbdcc36d6f61f35a"><li><span class="notion-default">根据原作者的readme.md，配置好了Notion API，并且已经和你的NotionNext仓库关联。</span></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3c151a8a47b34947aa91e09a9304ca58"><li><span class="notion-default">NotionNext Database ID</span></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-983d06fd68a44a9f97ebc3e54889d9c4"><li><span class="notion-default">你的NotionNext数据库有如下内容：</span></li><ol class="notion-list notion-list-numbered notion-block-983d06fd68a44a9f97ebc3e54889d9c4"><ul class="notion-list notion-list-disc notion-block-d87e9ea2cba1487490a069000cb1055d"><li><span class="notion-default">type</span></li></ul><ul class="notion-list notion-list-disc notion-block-e3761939060240e5b59e48ab1acffa15"><li><span class="notion-default">title</span></li></ul><ul class="notion-list notion-list-disc notion-block-df51e4bd3f5d49e791b03e48a3c911ae"><li><span class="notion-default">slug</span></li></ul><ul class="notion-list notion-list-disc notion-block-196be84cd46c4406ab0a938696ad6178"><li><span class="notion-default">category</span></li></ul><ul class="notion-list notion-list-disc notion-block-c4ce3fb9b5114e0cad3c01d8c7be92a8"><li><span class="notion-default">tags</span></li></ul><ul class="notion-list notion-list-disc notion-block-51e8b09a82b140e09c7ddf190e098800"><li><span class="notion-default">date</span></li></ul><ul class="notion-list notion-list-disc notion-block-bef24295528d4e559c53b14ea3733ea5"><li><span class="notion-default">status</span></li></ul><ul class="notion-list notion-list-disc notion-block-ba24a5537d244e598fb9a75d1772f277"><li><span class="notion-default">summary</span></li></ul><ul class="notion-list notion-list-disc notion-block-bc032a9ca7084d918873e09aba65c0c4"><li><span class="notion-default">password</span></li></ul><ul class="notion-list notion-list-disc notion-block-86de105786af421898219b4d1f8d6b2c"><li><span class="notion-default">icon</span></li></ul></ol></ol><div class="notion-text notion-block-2584f20773f94265a44429ae1235d7e4"><span class="notion-default"><b>如果你是直接复制的NotionNext的模板，这些内容应该已经有了。我在原作者的基础之上对本插件的内容进行了更改，所以你只需要保证你的数据库有如上内容，并且所有的字母都是小写！！！</b></span></div><div class="notion-text notion-block-53a56082664145a09951106bef86eda5"><span class="notion-default"><b>⚠️⚠️⚠️:表头全部小写！！！顺序无所谓！</b></span></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1727a0cccff94ed097e8a55abec94d00" data-id="1727a0cccff94ed097e8a55abec94d00"><span><div id="1727a0cccff94ed097e8a55abec94d00" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1727a0cccff94ed097e8a55abec94d00" title="安装插件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">安装插件</span></span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1b9bb32ec35e47a88de9b7a2071e0ad2" data-id="1b9bb32ec35e47a88de9b7a2071e0ad2"><span><div id="1b9bb32ec35e47a88de9b7a2071e0ad2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1b9bb32ec35e47a88de9b7a2071e0ad2" title="手动安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">手动安装</span></span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-c5de5345225e401fbcbc8726ff53c120"><li><span class="notion-default">关闭Obsidian</span></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-5ac8930e78264df6b0943645599a1b1a"><li><span class="notion-default">从Release下载插件文件，解压到你的obsidian插件目录下。</span></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-2f93a328f9af4f98a8551fb4e1fc31a0"><li><span class="notion-default">重新打开Obsidian，进入设置，启用插件。</span></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-51738968a5804d82bfd9252d1facccf7"><li><span class="notion-default">在设置中，找到Obsidian to NotionNext，填入你的NotionNext Database ID 和 API token。</span></li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-251c8f664eed40669b6336567bf4998e" data-id="251c8f664eed40669b6336567bf4998e"><span><div id="251c8f664eed40669b6336567bf4998e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#251c8f664eed40669b6336567bf4998e" title="Obsidian社区"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Obsidian社区</span></span></span></h4><div class="notion-text notion-block-a64c8b65755f4b1cb2917d3d65ba864e"><span class="notion-default">可以直接在社区中心搜索NotionNext：
</span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a11552bb62f44982944cc9d656c09a75"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://minioapi.pjx.ac.cn/img1/2023/11/27014ed9b4f93faf9a14181339f9fa61.png?t=a11552bb-62f4-4982-944c-c9d656c09a75" alt="notion image" loading="lazy" decoding="async"/></div></figure></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[使用iCloud同步Obsidian]]></title>
            <link>https://www.pengjiaxin.com/article/icloud-obsidian</link>
            <guid>https://www.pengjiaxin.com/article/icloud-obsidian</guid>
            <pubDate>Thu, 13 Jul 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[通过icloud和git来跨设备管理Obsidian笔记本]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-aaa52d1f9c0d4e2a9884a531588473ce"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><blockquote class="notion-quote notion-block-6f652ebe8d7d4b3ab4235953df2b95fe"><div>这个办法经过证实，在ios手机端不能很好的使用。所以我又整合了一个新的办法来同步桌面端和手机端。可以<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.pengjiaxin.com/logseq-ios">这个链接</a>了解一下。</div></blockquote><blockquote class="notion-quote notion-block-39062ccae3be4fd48af2d44f07133e6c"><div>最近使用了一下，除了在手机上启动的时候需要等待icloud的同步。其他方面没有遇到任何问题。 并且通过合并Obsidian和Logseq的仓库，现在已经可以完全同步使用两个软件。Logseq管理日常琐碎的事情，Obsidian记录大型笔记。 </div></blockquote><div class="notion-text notion-block-028d4af19f354fcbab60a51252b69e7b">一直以来我都是使用Obsidian作为我的主力笔记本，并且通过<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/denolehov/obsidian-git">Obsidian-git</a>来跨设备同步笔记本。 </div><div class="notion-blank notion-block-92d7edc5e3c94265b0909ba4bea364e1"> </div><div class="notion-text notion-block-20332c48c940417e935db4f5537a90f3">大部分时间都是在桌面端做文字输入，但是有些时候外出或者突发奇想的时候就想在手机或者iPad写一些东西。</div><div class="notion-blank notion-block-f3016ffb3f6a4ba29fd9132e6231170f"> </div><div class="notion-text notion-block-6675fabcbec6462e9276473bcb843525">这时候就直接打开，然后pull一下笔记本，稍微写一下就退出了。 但这就面临一个问题，有时候退出软件之前忘记push笔记，obsidian挂在后台的时候，它好像并不能自动commit&amp;push。如果之后在电脑上打开同一个笔记，在相同位置写下内容，并且push到远程仓库。</div><div class="notion-blank notion-block-6bd988fd4635456abc5108f64e66a120"> </div><div class="notion-text notion-block-cd22969983f0437da57a716f521e380a">下一次在手机或者iPad打开的时候就会遇到：</div><blockquote class="notion-quote notion-block-626b79a53dca41ee9f85d2dfd5c2fc11"><div><b>“MergeNotSupportedError: Merge with conflicts is not supported yet”</b></div></blockquote><div class="notion-blank notion-block-426e6d4dc0a742e8a080a15c1b4d4c4e"> </div><div class="notion-text notion-block-197ae2414c0b4276a409fad2c2d4ef4d">这个事情已经发生了非常多次。如果想要恢复仓库，就需要处理冲突内容。但是这个过程太繁琐了。</div><div class="notion-blank notion-block-9921b42b44e64ec0b6b397fed70fa5f7"> </div><div class="notion-text notion-block-7c8b31bb7a20402286d3ebfadb7344e5">所以今天突然想，能不能通过iCloud绕过git来同步仓库。然后只在电脑端开git同步笔记本到GitHub。</div><div class="notion-text notion-block-3a8dc5d8aef44ed091348d0a72a02165">实验了一下，<b>结果是没有问题。完全可行！</b></div><div class="notion-text notion-block-9abb0acd34fb47108b949e44851246c0">如果你也有这个需求，你可以按照下边的流程来操作：</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-be0cb24e787b457cbcbe16e5e5ce6e30" data-id="be0cb24e787b457cbcbe16e5e5ce6e30"><span><div id="be0cb24e787b457cbcbe16e5e5ce6e30" class="notion-header-anchor"></div><a class="notion-hash-link" href="#be0cb24e787b457cbcbe16e5e5ce6e30" title="第一步：下载ios版本obsidian"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第一步：下载ios版本obsidian</span></span></h2><div class="notion-text notion-block-bc6992a50be5485aac08c00cdb15bb3e">你首先要准备好手机端的Obsidian。如果在电脑端设置仓库的话，是没办法直接同步到手机上的。 </div><div class="notion-text notion-block-36ba654559154274b3e68b1ec19c0045">首先<code class="notion-inline-code">create new vault</code></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-af717c546cda4a31a30b5e169527c248"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:288px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2023/07/IMG_4515.PNG?t=af717c54-6cda-4a31-a30b-5e169527c248" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-c33a9c404da74fe5ab5f2bd0c4595327">然后选择储存在icloud，只有这样才能保证桌面端和ios同步。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e591dc6ee51f45fa86fa3ab2be38b524"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:288px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2023/07/IMG_4516.PNG?t=e591dc6e-e51f-45fa-86fa-3ab2be38b524" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-bfa5a3213e1c48e28999dd759686bc43"> </div><div class="notion-text notion-block-ca759af2f0934e23be238f0cf85b71e2">创建好之后，你就能在<code class="notion-inline-code">icloud → Obsidian</code> 文件夹下边看到你的vault目录。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d295b62c80d94416ae2fc939b809ea4b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:288px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2023/07/IMG_4517.PNG?t=d295b62c-80d9-4416-ae2f-c939b809ea4b" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-024b1e86cee74ee7bf398813d3431138">之后等待同步完成。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-f9de1e9f69ed442ea54a94e7159a87ef" data-id="f9de1e9f69ed442ea54a94e7159a87ef"><span><div id="f9de1e9f69ed442ea54a94e7159a87ef" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f9de1e9f69ed442ea54a94e7159a87ef" title="第二步：安装mac端的Obsidian"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第二步：安装mac端的Obsidian</span></span></h2><div class="notion-text notion-block-dfd057e51a114cc2b33b6decbe441382">进入Finder文件管理，查看Obsidian文件夹是否同步完成。之后从官网下载Obsidian，然后按照步骤安装即可。</div><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-28362f17b8004d1b90b04a5b11e8dd7b" href="https://obsidian.md/download"><div><div class="notion-bookmark-title">Download - Obsidian</div><div class="notion-bookmark-description">Obsidian is available on all major platforms. Download Obsidian for iOS, Android, macOS, Windows and Linux.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://obsidian.md/favicon.ico?t=28362f17-b800-4d1b-90b0-4a5b11e8dd7b" alt="Download - Obsidian" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://obsidian.md/download</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://obsidian.md/images/banner.png?t=28362f17-b800-4d1b-90b0-4a5b11e8dd7b" alt="Download - Obsidian" loading="lazy" decoding="async"/></div></a></div><div class="notion-blank notion-block-7febe93030b44de4b95f04a9f24d2cdb"> </div><div class="notion-text notion-block-41047367d59046f888d0ea8040d4044f">接下来，打开Obsidian，选择<code class="notion-inline-code">icloud→Obsidian</code> 中创建的文件夹</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-7b4f67b7c6c041428090586a7e4e12f0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:384px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2023/07/7N14JW.png?t=7b4f67b7-c6c0-4142-8090-586a7e4e12f0" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-9a79f538d6804bb0adf54c43289157dd"><b>这样同步就算完成。</b></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-4c0748dd9cb54090ab350f563427b47c" data-id="4c0748dd9cb54090ab350f563427b47c"><span><div id="4c0748dd9cb54090ab350f563427b47c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4c0748dd9cb54090ab350f563427b47c" title="第三步：分别设置config folder"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第三步：分别设置config folder</span></span></h2><div class="notion-text notion-block-1f9bc1ea19c54d8e9deb8de4c16802a2">在桌面端，<code class="notion-inline-code"><b>shift+cmd+.</b></code> 能够看到隐藏的文件夹 <code class="notion-inline-code">.obsidian</code> 这里边包含了插件和其他的配置文件。</div><div class="notion-blank notion-block-3ec0b5c197414c77ac4888b127449f32"> </div><div class="notion-text notion-block-6fededd73e0e4658a33e55fd262dfd1e">为保证桌面端和ios能够独立运行，我们需要在ios端重新创建一个新的<code class="notion-inline-code">config folder</code>。 </div><div class="notion-blank notion-block-50b90a870107489da11ff072858fd9da"> </div><div class="notion-text notion-block-2ea9cffa9ff54d94887cb178a88490b3">打开ios端Obsidian<code class="notion-inline-code">设置 → 关于</code> ，将config命名为任意你想要的名字，这里只为区别桌面端配置文件。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e3281085085f4a83b5828b0b5b42b5ad"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:288px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2023/07/IMG_4518.PNG?t=e3281085-085f-4a83-b582-8b0b5b42b5ad" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-0cdb833019774f1b8cf69dabb96907c1"> </div><div class="notion-blank notion-block-3934325dc3c84a98a3b4ae294d606b84"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-d6d4ffaf081f4352bda8b12693bf8f70" data-id="d6d4ffaf081f4352bda8b12693bf8f70"><span><div id="d6d4ffaf081f4352bda8b12693bf8f70" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d6d4ffaf081f4352bda8b12693bf8f70" title="第四步：桌面端同步GitHub"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">第四步：桌面端同步GitHub</span></span></h2><div class="notion-text notion-block-67dad155efad48759c41ef4133b0e715">我们的最终目的是使用<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/denolehov/obsidian-git">Obsidian-git</a>来同步仓库，并且保证跨终端不出现冲突。</div><div class="notion-text notion-block-31eece2ed4524f538823bf3974a4fa48">所以我们通过icloud来同步不同设备之间的仓库，然后通过桌面端统一管理同步到GitHub。</div><div class="notion-blank notion-block-7ff02922678a401ca3e39c67e7862784"> </div><div class="notion-text notion-block-6fb648758b734c55a8bf609ea06e41d4">你只需要根据这个说明在桌面端操作即可：</div><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-09dd4ed139f346ed94663e7a05de1827" href="https://publish.obsidian.md/git-doc/Getting+Started#Clone%20via%20plugin"><div><div class="notion-bookmark-title">Getting Started - Git Documentation - Obsidian Publish</div><div class="notion-bookmark-description">Getting Started - Git Documentation - Powered by Obsidian Publish.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://publish.obsidian.md/favicon.ico?0945f055fa69ff5c20dd&amp;t=09dd4ed1-39f3-46ed-9466-3e7a05de1827" alt="Getting Started - Git Documentation - Obsidian Publish" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://publish.obsidian.md/git-doc/Getting+Started#Clone%20via%20plugin</div></div></div></a></div><div class="notion-blank notion-block-b63bf7150e21490ca2803301022a1b8b"> </div><div class="notion-blank notion-block-188e27cc52c04484bc4863642dc6a772"> </div><div class="notion-text notion-block-30c97ce0d9234c9c99c20f80f16473c1">完成以上四步，大功告成！</div><div class="notion-blank notion-block-21f3392d382e4d2282e9292a512c669d"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install MATLAB-Engine for Julia on Apple Silicon M-series chip]]></title>
            <link>https://www.pengjiaxin.com/article/matlabengine-julia</link>
            <guid>https://www.pengjiaxin.com/article/matlabengine-julia</guid>
            <pubDate>Mon, 02 Jan 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[Solve the error when call matlab from julia.]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-99c67078e7394e8eb37865f6097d1139"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-9c134d31de554f4799c2bc86ef66e45a" data-id="9c134d31de554f4799c2bc86ef66e45a"><span><div id="9c134d31de554f4799c2bc86ef66e45a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9c134d31de554f4799c2bc86ef66e45a" title="Install the new MATLAB Engine with MATLAB R2023b"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Install the new MATLAB Engine with MATLAB R2023b</span></span></h3><blockquote class="notion-quote notion-block-d297c82343ef405e930c45f1b84b3b5b"><div>MATLAB has released the new native version of MATLAB R2023b, which can smoothly work on Apple Silicon. You can download from the below link: </div><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-17bff3517bbd4edd8cdec2d17c8b61ca" href="https://uk.mathworks.com/products/new_products/release-highlights.html"><div><div class="notion-bookmark-title">Prerelease Release Highlights</div><div class="notion-bookmark-description">R2023b prerelease: Updates to MATLAB, Simulink, and more than 100 other products.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://uk.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/templates/common/resources/images/favicon.20230615114353161.ico?t=17bff351-7bbd-4edd-8cde-c2d17c8b61ca" alt="Prerelease Release Highlights" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://uk.mathworks.com/products/new_products/release-highlights.html</div></div></div></a></div><div class="notion-text notion-block-2b3d3d31e379443cb60c9930fab624b3"><em>Note: </em><b>Remember to select the apply silicon version.</b></div><div class="notion-text notion-block-e2c79ee2ae4e41a7800b7c7199044cfa">The MATLAB.jl has also updated, you can add the package from Julia by <code class="notion-inline-code">using Pkg; Pkg.add(”MATLAB”)</code>. Once the installation and precompile finished, you can use the MATLAB engine in Julia. </div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-6fe1391db7f64c499df6d1f563fc0f5e" data-id="6fe1391db7f64c499df6d1f563fc0f5e"><span><div id="6fe1391db7f64c499df6d1f563fc0f5e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6fe1391db7f64c499df6d1f563fc0f5e" title="Issue with MATLAB Engine on Apple Silicon"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Issue with MATLAB Engine on Apple Silicon</span></span></span></h3><div class="notion-blank notion-block-6942aaba0c2a4d89b4c9646441192ab5"> </div><div class="notion-text notion-block-08285c297b764b1ebdc8e84a344c60ef"><span class="notion-default">Because MATLAB are still running on </span><span class="notion-default"><code class="notion-inline-code">x86_64</code></span><span class="notion-default"> platform, MATLAB Engine for Python or Julia is invalid on Apple Silicon native platform. If you want to use MATLAB Engine, you can only install all the software on </span><span class="notion-default"><code class="notion-inline-code">x86_64</code></span><span class="notion-default"> platform.</span></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-6e4a2dcc1c2a4670a7aa6800252e9d52" data-id="6e4a2dcc1c2a4670a7aa6800252e9d52"><span><div id="6e4a2dcc1c2a4670a7aa6800252e9d52" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6e4a2dcc1c2a4670a7aa6800252e9d52" title="Install Homebrew via x86_64 platform"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Install Homebrew via </span><span class="notion-default"><code class="notion-inline-code">x86_64</code></span><span class="notion-default"> platform</span></span></span></h2><div class="notion-text notion-block-cde3d03bf4364ed2b12388146749fb86"><span class="notion-default">The solution can be found from </span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://stackoverflow.com/a/64951025">stackoverflow discuss</a></span><span class="notion-default">.</span></div><ol start="1" class="notion-list notion-list-numbered notion-block-dbfe55acef5f4daf85306604a0d245ea"><li><span class="notion-default">Install </span><span class="notion-default"><code class="notion-inline-code">homebrew</code></span><span class="notion-default"> via </span><span class="notion-default"><code class="notion-inline-code">arch-x86_64</code></span><span class="notion-default"> platform</span></li></ol><ol start="1" class="notion-list notion-list-numbered notion-block-49b71d3cac1044b6ba522618fe66f1fa"><li><span class="notion-default">Add </span><span class="notion-default"><code class="notion-inline-code">arch-x86_64</code></span><span class="notion-default"> to </span><span class="notion-default"><code class="notion-inline-code">PATH</code></span><span class="notion-default"> in </span><span class="notion-default"><code class="notion-inline-code">~/.zshrc</code></span><span class="notion-default">. by  </span><span class="notion-default"><code class="notion-inline-code">open ~/.zshrc</code></span><span class="notion-default"> and add the following line to the end of the file.</span></li></ol><div class="notion-text notion-block-1c2b1d74691c4c18ac308713620cefa2"><span class="notion-default">The </span><span class="notion-default"><code class="notion-inline-code">brow</code></span><span class="notion-default"> is the alias for </span><span class="notion-default"><code class="notion-inline-code">brew</code></span><span class="notion-default"> and </span><span class="notion-default"><code class="notion-inline-code">ib</code></span><span class="notion-default"> is the alias for </span><span class="notion-default"><code class="notion-inline-code">arch-x86_64</code></span><span class="notion-default">.</span></div><ol start="1" class="notion-list notion-list-numbered notion-block-5057d432eb3f4ed09ea11bcd8e4651ca"><li><span class="notion-default">Add an alias to switch between </span><span class="notion-default"><code class="notion-inline-code">arch-x86_64</code></span><span class="notion-default"> and </span><span class="notion-default"><code class="notion-inline-code">arch-arm64</code></span><span class="notion-default"> platform</span></li></ol><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3bf6e22082704a20bae5dca15dbb6a35" data-id="3bf6e22082704a20bae5dca15dbb6a35"><span><div id="3bf6e22082704a20bae5dca15dbb6a35" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3bf6e22082704a20bae5dca15dbb6a35" title="Install Julia via x86_64 platform"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Install Julia via </span><span class="notion-default"><code class="notion-inline-code">x86_64</code></span><span class="notion-default"> platform</span></span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-771d4e42ba48411da4ac3fb16b1e87e3"><li><span class="notion-default">Install Julia via </span><span class="notion-default"><code class="notion-inline-code">arch-x86_64</code></span><span class="notion-default"> platform </span><span class="notion-default"><code class="notion-inline-code">homebrew</code></span><span class="notion-default">.</span></li></ol><div class="notion-text notion-block-6a5c628df3144a8baaf7aaa3a764934e"><span class="notion-default">Wait for the installation.</span></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3f938312c6384b7c8467bebcb054dfea" data-id="3f938312c6384b7c8467bebcb054dfea"><span><div id="3f938312c6384b7c8467bebcb054dfea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3f938312c6384b7c8467bebcb054dfea" title="Install MATLAB Engine for Julia"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Install MATLAB Engine for Julia</span></span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-5a29172c769c43c283ec4ee15ae6d832"><li><span class="notion-default">Start Julia </span><span class="notion-default"><code class="notion-inline-code">ib julia</code></span><span class="notion-default"> and install </span><span class="notion-default"><code class="notion-inline-code">MATLAB</code></span><span class="notion-default"> package.</span></li></ol><ol start="1" class="notion-list notion-list-numbered notion-block-f1f2a9e914d8411e9adac65954ae970a"><li><span class="notion-default">Test the availability.</span></li></ol><div class="notion-text notion-block-f9a2b5b943344d4e80f20d95ac9f7c49"><span class="notion-default">The return value should be </span><span class="notion-default"><code class="notion-inline-code">5</code></span><span class="notion-default">.</span></div><div class="notion-text notion-block-67df0b745aa841039ae51c06d2323a77"><span class="notion-default"><b>Everytime when you run Julia rememeber to add</b></span><span class="notion-default"> </span><span class="notion-default"><code class="notion-inline-code">ib julia</code></span><span class="notion-default"> rather than </span><span class="notion-default"><code class="notion-inline-code">julia</code></span><span class="notion-default"> </span><span class="notion-default"><b>to start Julia if you want to use MATLAB Engine.</b></span></div><div class="notion-text notion-block-4921702e601349c8bdc4c816739e42d6"><span class="notion-default">If you only need the Julia function, I suggest to run native version of Julia on Apple Silicon.</span></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An easy way to design the conference name tags]]></title>
            <link>https://www.pengjiaxin.com/article/namebadges</link>
            <guid>https://www.pengjiaxin.com/article/namebadges</guid>
            <pubDate>Fri, 26 Aug 2022 00:00:00 GMT</pubDate>
            <description><![CDATA[Use Word and Excel to design conference name badges]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-9e1627b79f2b481693e2ee793ee03103"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-02aff908b9b24fd895c1265073e258f0"><span class="notion-default">This post describes using Microsoft Word and Excel to generate conference name badges quickly. It is motivated by </span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://blog.gtwang.org/windows/making-name-plate-table-card-using-word-and-excel/3/">the blog</a></span><span class="notion-default">.</span></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-742fac2556a046e4931d49c5373042d0" data-id="742fac2556a046e4931d49c5373042d0"><span><div id="742fac2556a046e4931d49c5373042d0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#742fac2556a046e4931d49c5373042d0" title="Preparation"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Preparation</span></span></span></h3><div class="notion-text notion-block-c493586b01e74bb796be6da4701bd99a"><span class="notion-default">In the first step, you need to have three files in your hand:</span></div><ul class="notion-list notion-list-disc notion-block-6b7abe7887ad4c718c2b76708d8cada6"><li><span class="notion-default">Background image: Photoshop-designed background </span><span class="notion-default"><code class="notion-inline-code">.png</code></span><span class="notion-default"> or </span><span class="notion-default"><code class="notion-inline-code">.jpeg</code></span><span class="notion-default"> image with all conference information that you would
like to include except the attendee&#x27;s name and affiliation. You can design your own image size, but a preferred size
is </span><span class="notion-default"><code class="notion-inline-code">height 5.08cm x width 8.89cm</code></span><span class="notion-default">.</span></li></ul><ul class="notion-list notion-list-disc notion-block-0b03882b3ac84d21965577fedc300f18"><li><span class="notion-default">Attendee list (Excel): a </span><span class="notion-default"><code class="notion-inline-code">.xlsx</code></span><span class="notion-default"> file with all attendees&#x27; details.</span></li></ul><ul class="notion-list notion-list-disc notion-block-c884ef7a5476479a803c90ad02388b2b"><li><span class="notion-default">Name badges (Word): a </span><span class="notion-default"><code class="notion-inline-code">.docx</code></span><span class="notion-default"> file with the template of name badges.</span></li></ul><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-f6667c0db2d6492c99c5087252c6bc05" data-id="f6667c0db2d6492c99c5087252c6bc05"><span><div id="f6667c0db2d6492c99c5087252c6bc05" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f6667c0db2d6492c99c5087252c6bc05" title="Create the template of name badges"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Create the template of name badges</span></span></span></h3><div class="notion-text notion-block-4cda11525eb949cfa02ba0180c5c0549"><span class="notion-default">Create the</span><span class="notion-default"><code class="notion-inline-code">.docx</code></span><span class="notion-default"> file with </span><span class="notion-default"><code class="notion-inline-code">Layout -&gt; Margins -&gt; Custom Margins</code></span><span class="notion-default"> and set the margins with the below values:</span></div><div class="notion-text notion-block-c154e940bdd344ea9e2a5f4ed07f9bd9"><span class="notion-default">Create </span><span class="notion-default"><code class="notion-inline-code">2*5</code></span><span class="notion-default"> blank tables:</span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-719bd2c23b1746609b8c40466b65ec4a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:288px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2022/08/word-tablesize.png?t=719bd2c2-3b17-4660-9b8c-40466b65ec4a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-22586b7a0b794ed9befad33a6ad1d506"> </div><div class="notion-text notion-block-8fcabfa4eac24c2790128f01ce80ec2a">And resize the <code class="notion-inline-code">Layout -&gt; Height and Width</code> to <code class="notion-inline-code">height 5.08cm x width 8.89cm</code> to ensure each page will include ten badges.</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-229de23a89c941039ba8b0fd49188f06"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2022/08/word-tablewidth.png?t=229de23a-89c9-4103-9ba8-b0fd49188f06" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-0da0dcc6cc1a43e789fe603ee3aab6f7"><span class="notion-default">Insert the background image into the first cell and set </span><span class="notion-default"><code class="notion-inline-code">Wrap Text -&gt; Behind Text</code></span><span class="notion-default">the </span><span class="notion-default"><code class="notion-inline-code">Size and Position</code></span><span class="notion-default"> of the image as:</span></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-9dc72375d2a14e588c6b7aaf02f9d619"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:336px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.jsdelivr.net/gh/jxpeng98/imagerepo@main/2022/08/word-imgsize.png?t=9dc72375-d2a1-4e58-8c6b-7aaf02f9d619" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-f92b4e32cb8540b7b584c60c978cf9e1"><span class="notion-default">

Then match the background image with the cell border. Choose suitable font position (Centre Text with 1.5 Line Spacing) and font size for name and affiliation.</span></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-570bbd589ace4619868ddf6f8785f2d5" data-id="570bbd589ace4619868ddf6f8785f2d5"><span><div id="570bbd589ace4619868ddf6f8785f2d5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#570bbd589ace4619868ddf6f8785f2d5" title="Create the name badges"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">Create the name badges</span></span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-fecb8bfe91b4439e952ff209675fea29"><li><span class="notion-default">Select </span><span class="notion-default"><code class="notion-inline-code">Mailings -&gt; Select Recipients -&gt; Use an existing list</code></span><span class="notion-default"> and select the </span><span class="notion-default"><code class="notion-inline-code">Attendee list</code></span><span class="notion-default"> in a specific directory.</span></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-36973e3d1d9246d086ab51efd73401d9"><li><span class="notion-default"><code class="notion-inline-code">Insert Merge Field</code></span><span class="notion-default"> and set the </span><span class="notion-default"><code class="notion-inline-code">&lt;&lt;Name&gt;&gt;</code></span><span class="notion-default">. In the second line, select the </span><span class="notion-default"><code class="notion-inline-code">&lt;&lt;Affiliation&gt;&gt;</code></span><span class="notion-default"> filed.</span></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-5605fc7af7e541bcb597e55222a65477"><li><span class="notion-default">Copy all content in the first cell, including the background image and paste it into the second cell.</span></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-702df10ff73f43e5b3cabe3d9da8ec9a"><li><span class="notion-default">In the second cell, add rules to let the Word generate the second attendee name badge with </span><span class="notion-default"><code class="notion-inline-code">Mailings -&gt; Rules -&gt; Next Record</code></span><span class="notion-default">, and it will be like:</span></li><ol class="notion-list notion-list-numbered notion-block-702df10ff73f43e5b3cabe3d9da8ec9a"></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-a69a42e0a79b49618da7f836a4175ce5"><li><span class="notion-default">Copy the second cell for all the rest cells.</span></li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-576742cd41a64db39d4d23ae4ab41f44"><li><span class="notion-default">Preview and </span><span class="notion-default"><code class="notion-inline-code">Mailings -&gt; Finish &amp; Merge -&gt; Edit Individual Document</code></span><span class="notion-default">.</span></li></ol><div class="notion-blank notion-block-79b5668269a54afc9d3b46bb18b4a1a5"> </div><div class="notion-blank notion-block-d703ed629ae547db81daa63fc0487b53"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Better way to add website search engine for Jekyll-based website]]></title>
            <link>https://www.pengjiaxin.com/article/jekyllsearchamend</link>
            <guid>https://www.pengjiaxin.com/article/jekyllsearchamend</guid>
            <pubDate>Thu, 25 Aug 2022 00:00:00 GMT</pubDate>
            <description><![CDATA[Better way to add website search engine for Jekyll-based website]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-002d48870ad14fa4be729f8a436b8a82"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-74afb3ae754c4e4b9c9aa7db1d91e900"><span class="notion-default">This post illustrates how to use </span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/christian-fei/Simple-Jekyll-Search">Simple-Jekyll-Search</a></span><span class="notion-default"> to build the search page in a personal website. This approach is motivated by </span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://kevq.uk/how-to-add-search-jekyll/">Kev Quirk&#x27;s post</a></span><span class="notion-default">.</span></div><div class="notion-text notion-block-798643a896e344c783a7fb07fb138e38"><span class="notion-default">I amend the procedures to make it more simple.</span></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-86879aee50284c7eb7255e7eb0641851" data-id="86879aee50284c7eb7255e7eb0641851"><span><div id="86879aee50284c7eb7255e7eb0641851" class="notion-header-anchor"></div><a class="notion-hash-link" href="#86879aee50284c7eb7255e7eb0641851" title="1. First step"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">1. First step</span></span></span></h3><div class="notion-text notion-block-62551584b15449618f82ec691790a40c"><span class="notion-default">Create a file </span><span class="notion-default"><code class="notion-inline-code">search.json</code></span><span class="notion-default"> in the root directory with the code in the </span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/jxpeng98/web-template/blob/f1a4512d19a8db39a5e26f53d8b0cd331c9eaf57/search.json">file</a></span><span class="notion-default">.</span></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-e2fd6e33654743f4bc4747bb8e14c5ef" data-id="e2fd6e33654743f4bc4747bb8e14c5ef"><span><div id="e2fd6e33654743f4bc4747bb8e14c5ef" class="notion-header-anchor"></div><a class="notion-hash-link" href="#e2fd6e33654743f4bc4747bb8e14c5ef" title="2. Second step"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">2. Second step</span></span></span></h3><div class="notion-text notion-block-f06d178344c8456b82a5cedf1b88f8c8"><span class="notion-default">Create a </span><span class="notion-default"><code class="notion-inline-code">search-script.js</code></span><span class="notion-default"> file in the </span><span class="notion-default"><code class="notion-inline-code">/assets/js/</code></span><span class="notion-default"> directory.</span></div><div class="notion-blank notion-block-54d8a2b1367645539be215981aa33db5"> </div><div class="notion-blank notion-block-198462347e93415f879c21f5edf684a5"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-d323470a99024409be72a3cc8b6421f4" data-id="d323470a99024409be72a3cc8b6421f4"><span><div id="d323470a99024409be72a3cc8b6421f4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d323470a99024409be72a3cc8b6421f4" title="3. Third step"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">3. Third step</span></span></span></h3><div class="notion-text notion-block-cf4b08586ec442e6959d15990cf7b308"><span class="notion-default">Create a new file </span><span class="notion-default"><code class="notion-inline-code">/_pages/search.md</code></span><span class="notion-default"> for search page display with a personalised style and paste the following code:</span></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[基于Simple-Jekyll-Search 构建搜索页面]]></title>
            <link>https://www.pengjiaxin.com/article/jekyllsearchamend</link>
            <guid>https://www.pengjiaxin.com/article/jekyllsearchamend</guid>
            <pubDate>Thu, 25 Aug 2022 00:00:00 GMT</pubDate>
            <description><![CDATA[一个基于Jekyll 的个人网页搜索页面]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-f48d15801c4c40398920bba2db1160ed"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-4c61333a457245ab86041e808ee5c1cc">这篇文章简要介绍如何给自己的网页搭建一个基于<span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/christian-fei/Simple-Jekyll-Search">Simple-Jekyll-Search</a></span><span class="notion-default"> 的</span>搜索页面。 这个方法事基于<span class="notion-default"> </span><span class="notion-default"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://kevq.uk/how-to-add-search-jekyll/">Kev Quirk&#x27;s post</a></span><span class="notion-default"> 改进而来。</span></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-7f1240eecbcd4e9f8b8c5fc536dfc535" data-id="7f1240eecbcd4e9f8b8c5fc536dfc535"><span><div id="7f1240eecbcd4e9f8b8c5fc536dfc535" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7f1240eecbcd4e9f8b8c5fc536dfc535" title="1. 创建json文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">1. 创建json文件</span></span></span></h3><div class="notion-text notion-block-12666004a77f44338f4cbfcdee434c9a"><span class="notion-default">你需要在你的项目根目录创建一个</span><span class="notion-default"><code class="notion-inline-code">search.json</code></span><span class="notion-default"> 的文件</span></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-ba1bb3ff631341d8a5d092e0839318b4" data-id="ba1bb3ff631341d8a5d092e0839318b4"><span><div id="ba1bb3ff631341d8a5d092e0839318b4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ba1bb3ff631341d8a5d092e0839318b4" title="2. 创建JavaScript文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">2. 创建JavaScript文件</span></span></span></h3><div class="notion-blank notion-block-d527b56f1c5945feaea938fbd1f69908"> </div><details class="notion-toggle notion-block-d6d03fe575484ebf8c5f0700f3aff2ab"><summary>在<span class="notion-default"><code class="notion-inline-code">/assets/js/</code></span><span class="notion-default"> 目录创建一个</span><span class="notion-default"><code class="notion-inline-code">search-script.js</code></span><span class="notion-default"> 文件，代码如下：</span></summary><div></div></details><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-0f18acee51004b589c125028a63fa809" data-id="0f18acee51004b589c125028a63fa809"><span><div id="0f18acee51004b589c125028a63fa809" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0f18acee51004b589c125028a63fa809" title="3. 创建搜索页面"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-default">3. 创建搜索页面</span></span></span></h3><div class="notion-text notion-block-b8424845f62f4c058ed4ae251aef6ec9">在如下目录创建搜索页面<span class="notion-default"> </span><span class="notion-default"><code class="notion-inline-code">/_pages/search.md</code></span><span class="notion-default"> 。你可以根据自己的需求更改CSS style。</span></div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>