banner
ZDawn

ZDawn

Do one thing at a time and do well.
tg_channel

Obsidian's sharing strategy

Preface#

Everyone has a passion for writing, and everyone has a desire to share, but writing doesn't necessarily have to be seen by others. It is more about recording one's own emotions and growth. In this case, a blog is undoubtedly the best choice.

There are many mature blogs to choose from, such as Yuque, Medium, and Cnblogs, but I prefer to control my own data and try to achieve an automated workflow. I only focus on writing, and leave the publishing to automation.

Workflow#

  • Obsidian, a more complete writing experience, serves as a local tool for writing and managing documents.
  • Notion Blog sharing platform
    • Notion, a transit tool. I used to use Notion to write, but the choice of the network forced me to give up using Notion online and only use it as a data storage.
    • NotionNext, a great tool for rendering blogs dynamically using Notion.
    • Obsidian-NotionNext-plugin, a tool made by enthusiasts with the same hobby, uploads Ob's documents to Notion.
  • Xlog, an encrypted sharing platform based on web3
    • xlog.app
    • Obsidian-xlog-plugin, a plugin that uploads documents to xlog.
  • Halo, a complete personal blog system
    • halo.run
    • Obsidian-halo, a tool that uses Obsidian to publish to halo.

For blogs, I have given up on dual-linking. Instead of thinking too much about it, it is better to write more. After all, blogs are sometimes redundant and the content may be irrelevant.

Notion Blog#

Preview#

qfjN25RMA6UGgaY.png

Tools#

  • Notion, preferably the plus version, as it is used as an image hosting service. The free version has a 5MB limit, but it is still sufficient.
  • NotionNext, currently the best Notion rendering tool, with multiple themes to choose from.
  • Vercel, a very reliable website hosting tool.
  • Domain name, Vercel's subdomain is blocked, but custom domains that are not blocked have good access speed.

Configuration Process#

  1. Setting up NotionNext website, please refer to the author's blog installation process
    1. After logging in to Notion, open the template, click on Duplicate in the upper right corner to copy it to your own Notion library.
    2. Publish this template publicly and record the Page ID, which looks like 02ab3b8678004aa69e9e415905ef32a5, the string before the ? in the address bar.
    3. Log in to GitHub and fork the source code to your own repository.
    4. Log in to Vercel and choose the repository you just forked to deploy.
  2. Configuring environment variables in Vercel
    1. Currently, there are multiple ways to configure environment variables in Notion, such as modifying the source code, Vercel environment variables, and Notion database configuration center. However, I think the best way is to use Vercel environment variables.
    2. Open a file with VSCode, copy the following content, modify the variables that belong to you, and save it as .env file.
    3. Import .env into the Vercel NotionNext project and redeploy it to get your own blog.
NOTION_PAGE_ID=''
NEXT_PUBLIC_THEME='hexo'
NEXT_SINCE=2013
NEXT_PUBLIC_APPEARANCE='auto'
NEXT_PUBLIC_GREETING_WORDS='Welcome to my blog🎉, be happy every day😁'
NEXT_PUBLIC_CUSTOM_MENU=true
NEXT_PUBLIC_LINK='https://blog.zjan.me'
NEXT_PUBLIC_KEYWORD=''
NEXT_PUBLIC_CONTACT_EMAIL=''
NEXT_PUBLIC_NOTION_HOST=''
NEXT_PUBLIC_POST_SHARE_BAR=false
NEXT_PUBLIC_POST_SORT_BY='date'
NEXT_PUBLIC_WIDGET_PET=false
NEXT_PUBLIC_COMMENT_ENV_ID=''
NEXT_PUBLIC_ANALYTICS_GOOGLE_ID=''
NEXT_PUBLIC_DESCRIPTION='Between heaven and earth, suddenly like a traveler'
NEXT_PUBLIC_BIO='An uninteresting person'
  1. Obsidian NotionNext plugin
    1. Search for NotionNext in the plugin marketplace and install the plugin.
    2. The configuration mainly involves the Notion API interface and page ID. For details, refer to Github.
    3. k2wngNzTFbtMVP9.png
    4. Make good use of Obsidian's template feature.

Xlog Blog#

Preview#

Mi2bB4YjT8AHVUp.png

Tools#

  • https://xlog.app
  • Encrypted wallet, it seems that an email address will also work, but xlog is based on web3, so it is best to use an encrypted wallet.
  • obsidian-xlog plugin

Configuration Process#

  1. xlog.app
    1. Just connect with a wallet.
    2. Custom domain names are available.
    3. Note: Everything cannot be deleted.
  2. Obsidian plugin configuration
    1. https://github.com/Otto-J/sync-to-xlog
    2. It is recommended to obtain the token through SIWE.
  3. The project documentation is very clear, make good use of it.

Halo Blog#

Preview#

T1E7K2xrfieFjoH.png

Tools#

  • https://halo.run
  • Obsidian halo plugin (seems to be unable to upload images, not sure if it has been fixed)

Configuration Process#

  • For halo installation, please refer to the official documentation.
  • For obsidian plugin, please refer to the documentation as well.

Enjoy!#

These are three sharing solutions. The best blog effect should be achieved with Halo, which is more complete. However, regardless of the method, my favorite part is that I can publish without leaving Obsidian. For example, after typing this paragraph, I can directly use a command to publish it. How convenient it is!

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