This plugin is currently in the beta stage.
This plugin makes you publish Obsidian notes to Blogger.
This plugin has already been released to the Community plugins. You can install it from the Obsidian settings. If you want to use development versions, you can install it manually by following the instructions below.
- Clone this repository to your local machine and execute the build process.
cd /path/to/your/obsidian/vault/.obsidian/plugins git clone git@github.com:privet-kitty/obsidian-blogger.git cd obsidian-blogger npm install npm run build
- Activate the
Bloggerplugin within theCommunity Pluginssection of the settings. A reload of the plugins may be required.
TODO: more detailed intructions
Before starting to use this plugin, you need to create an OAuth2 client ID and a secret. Note that this procedure depends on whether you are using a desktop or a mobile.
- Go to the Google Cloud Console.
- You may want to create a new project.
- Go to
Enabled APIs & servicesand clickENABLE APIS AND SERVICES. Search forBlogger APIand enable it. - Go to the Credentials page on Google Cloud Console.
- Click
Create Credentialsand selectOAuth client IDfrom the drop-down menu. (For the first time, you may need to compose an OAuth2 consent screen.) - (Desktop only) Select
Desktop appand create a key with your favorite name. - (Mobile only) Select
Web application, clickADD URIfromAutorized redirect URIsand addhttps://privet-kitty.github.io/obsidian-blogger/oauth2_forward.html. Then, create a key with your favorite name. - The credentials will be created. Please note your client ID and secret.
- Open the plugin settings and set your client ID and secret.
The strange procedure in step 7 is due to the fact that it's not possible to create a local server in the Mobile Obsidian and that Google imposes restrictions on the use of custom URI schemes.
Please see Tips for information beyond this README.
Initially, create your profile via the Profiles section in the plugin settings tab. During this process, OAuth2 authentication is necessary to access your Blogger account.
Subsequently, you can publish your document to Blogger using Publish to Blogger found in the Command Palette or through a dedicated button in the sidebar. The document will be published to the Blogger URL you set.
You could add YAML front matter at the beginning of your note. The plugin will interpret metadata from the front matter, such as the title and labels. Furthermore, a Blogger post ID will be appended to this front matter after the note has been published successfully.
An example of front matter is as follows:
---
title: Post title which will override note title, not required
labels:
- any tag you want
- not required
---
Content here.This plugin is based on Cheng Liang's obsidian-wordpress.