banner
阿江要努力鸭

阿江要努力鸭

好软推荐 / 效率提升 / 自我管理 / 系统方法论 / 变现点子王
bilibili
douban
email

New way of writing in xlog: Syncing Obsidian to write blog posts in xlog

Introduction to xlog#

image.png
xLog is a blog platform running on the Crossbell blockchain. It is open source, decentralized, and free. It is a community of bloggers who share their thoughts and ideas with each other. Here, you can find the latest news and trends from Web2, Web3, and the real world.

Background Story#

At first, I didn't plan to use xlog because I felt that I had my own vercel website and there was no need to distribute articles to other platforms. Friends who often follow me may have seen my previous article on writing quail in Obsidian. Writing newsletters with ease and no pressure using Obsidian

Later, I found that quail was not particularly adaptable to free image hosting, and I was too lazy to tinker with Obsidian's automatic publishing for quail, or it could be my personal problem. In the end, I chose the xlog platform. Of course, I often think, why not just record it in WeChat Official Account? Today, I met xlog again and found this reason, because WeChat Official Accounts often get banned, while hosting on xlog requires almost no effort to leave your mark on the Internet. To put it simply, because of the existence of blockchain, the records of your articles will always be stored on the Internet. This is a good thing, in a sense, for me.

I paid attention to xlog again because of Obsidian Sync To Xlog, and when I saw it, I thought it was great because I can directly publish my completed articles on xlog, which is really convenient.

How to Set Up#

The following two methods can be used for installation, choose the one that suits you.

Manual Installation#

Releases · Otto-J/sync-to-xlog This is the address of the plugin, and we need to download the three files shown in the figure below first.
image.png
After downloading, click "Settings-Third-party plugins-Folder" in Obsidian to find the address of our plugin.
image.png
We create a folder named sync to xlog, but theoretically it can be named anything.
image.png
After creating it, we just need to put the three files we downloaded into the folder, and restart Obsidian to see the new plugin.
image.png

Installation via BRAT#

Search for "BRAT" in the plugin marketplace and install it.
image.png
After enabling the plugin, select "add beta plugin" and copy this https://github.com/Otto-J/sync-to-xlog into the input box.
image.png
image.png

Now we can enable the plugin in Obsidian.
image.png
After opening the plugin, we need to obtain the XLOG SIWE Token, and there are two methods to do this.
One is to directly open metamask and view the account details, but the author does not recommend doing this.
image.png
We will use the second method, log in to our own xlog, and right-click to inspect the page.
image.png

First, visit your xlog console https://xlog.app/dashboard/ and select "Settings" in the last column of the left menu.

Select xSettings, and you will see the following display:

image

After enabling Operator Sign, enter the following code in the console to get the token, and fill in the plugin location with the token.

JSON.parse(localStorage.getItem("connect-kit:account")).state.wallet.siwe.token;

After entering, click "Test". If it is correct, the connection successful message will appear in the upper right corner.
image.png

Publishing Articles#

Click the three dots in the upper right corner.
image.png
There will be an option to upload the article to xlog.
image.png
image.png
Then, you will be asked to enter the article title, summary, slug, tags, and other elements for uploading.
Finally, the publication is complete. If you publish again, it will be an option to update the article, and it will not publish duplicate or similar content. A new way of writing with xlog: Writing blogs in Obsidian and syncing to xlog - Ajian's Efforts
image.png
You can visit my website at
https://xlog.ajiang.fun
or
https://ajiang.xlog.app.

Of course, I also have another website at https://notes.ajiang.fun.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.