afazio1 / obsidian-markdown-blogger

Allows developers to push markdown notes to their local blog, portfolio, or static site. Works with Astro.js, Next.js, and any other framework configured to render markdown pages.
MIT License
91 stars 1 forks source link
astrojs nextjs obsidian-md obsidian-plugin

Markdown Blogger

This plugin for Obsidian allows developers to instantly push markdown notes to their local blog, portfolio, or static site project. Works with Astro.js, Next.js, and any other framework configured to render markdown pages.

markdown-blogger-demo

Get the benefits of composing markdown notes in Obsidian without having to manually create files and copy-paste content into your local project. Also makes it much easier to keep these two files in-sync.

Video Tutorial

Markdown Blogger Video Tutorial

Features

Usage

After enabling the plugin, go to Markdown Blogger's settings.

Commands

Push markdown command

Creates or overwrites a file at location /PROJECT_PATH/<note_name>.md with the current note's markdown content.

Push to custom path command

Same as Push command but allows you to navigate through your system's folders much like a terminal.

Pull markdown command

Overwrites the current note's markdown content with the file content at location /PROJECT_PATH/<note_name>.md

Pull from custom path command

Same as Pull command but allows you to navigate through your system's folders much like a terminal.

Validate path command

Validates the Local project folder path currently in settings.

Tips & Disclaimers

  1. This is not a Version Control System like Git. Push and pull commands will overwrite the contents of the file. No history is tracked. I recommend only making changes to one file at any given time and pushing or pulling before editing a file.
  2. Triple-check your Local project folder path. You can easily copy the absolute path from within VS Code by right-clicking the directory where you store your .md files.
    • Ex. /Users/alexa/Desktop/code-projects/alexa-blog/src/content
  3. Files are paired with each other (in Obsidian vs. in Project) based on their filename. As of now, if you change the filename in one place you must change it in the other.
  4. Since the .md file in your project will have the same filename as the Obsidian note it was generated from, I recommend using hyphens instead of spaces when naming files.
    • Ex. Cool Blog Post.md becomes Cool-Blog-Post.md

Support Development

Hi, I'm Alexa. A developer, college student, and YouTuber.

I build tools and create content because I love connecting with people. If you feel compelled to buy me a coffee that would be greatly appreciated! 🤗

Buy Me A Coffee