Skip to content

A PowerShell library for publishing markdown files to Blogger

License

Notifications You must be signed in to change notification settings

bryanbcook/TyporaBloggerAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

TyporaBloggerAPI

A PowerShell library for publishing markdown files authored in Typora to Blogger. This library exists because OpenLiveWriter isn't being actively maintained and Typora is awesome. The intention is that you would author your blog posts in Typora and then drop to a command-prompt to publish them to Blogger.

Note:

Currently in development. Currently tested on Windows

Getting Started

  1. Install necessary dependencies:

    choco install pandoc
    

    (Future: still need to publish to PowerShell nuget library)

    Install-Module TyporaBloggerApi
    
  2. Authenticate with your Blogger account:

    Initialize-TyporaBlogger
    

    This will launch a browser and authenticate with Google.

    Note:

    You may be prompted that Google hasn't verified the app yet. Working on it. Click Continue for now.

  3. List your blogs

    Get-BloggerBlogs
    
  4. Set a default blog

    Set-TyporaBloggerConfig -Name BlogId <blogid>
    
  5. List your posts for that blog

    Get-BloggerPosts
    
  6. Publish a markdown file to your blog as draft

    Publish-MarkdownBlogPost -File .\filename.md -Draft
    

    This will post a draft to your blog and update the markdown file with the blogger postid and mark it as wip.

  7. Publish a markdown file to your blog

    Publish-MarkdownBlogPost -File .\filename.md
    

Future

  • Typora hook to post images to Google Drive
  • Download existing posts to your machine in markdown

About

A PowerShell library for publishing markdown files to Blogger

Resources

License

Stars

Watchers

Forks