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#
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#
- Setting up NotionNext website, please refer to the author's blog installation process
- After logging in to Notion, open the template, click on
Duplicate
in the upper right corner to copy it to your own Notion library. - Publish this template publicly and record the Page ID, which looks like
02ab3b8678004aa69e9e415905ef32a5
, the string before the?
in the address bar. - Log in to GitHub and fork the source code to your own repository.
- Log in to Vercel and choose the repository you just forked to deploy.
- After logging in to Notion, open the template, click on
- Configuring environment variables in Vercel
- 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.
- Open a file with VSCode, copy the following content, modify the variables that belong to you, and save it as
.env
file. - 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'
- Obsidian NotionNext plugin
- Search for
NotionNext
in the plugin marketplace and install the plugin. - The configuration mainly involves the Notion API interface and page ID. For details, refer to Github.
- Make good use of Obsidian's template feature.
- Search for
Xlog Blog#
Preview#
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#
- xlog.app
- Just connect with a wallet.
- Custom domain names are available.
- Note: Everything cannot be deleted.
- Obsidian plugin configuration
- https://github.com/Otto-J/sync-to-xlog
- It is recommended to obtain the token through SIWE.
- The project documentation is very clear, make good use of it.
Halo Blog#
Preview#
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!