Skip to content

jijiechen/BlogML2Hugo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

BlogML to Hugo

This tool helps you convert your exported BlogML xml file to Hugo friendly markdown files. Many blog engines can generate BlogML files. If you want to migrate your blog to hugo, this tool may be helpful for you.

Usage

Some prebuilt binaries are ready for Windows and macOS in the release section, but they may not work as OS upgrades. If so, please follow following steps in the Running from source paragraph to built it by yourself.

Open a command line prompt / terminal / PowerShell, and type in the following commandline (without the $):

    $ cd BlogML2Hugo-osx
    $ ./BlogML2Hugo <path-to-blogml.xml> <path-of-content-post-in-hugo>

Wait for completion.

Notes

This tool only converts the exported xml (which is in BlogML format) to multiple hugo-compatible markdown files. It does not fix links to attachments or images in your existing posts. So you'll need some mannual steps to take care of those.

Running from source

Before running, you need to compile the application from this source. You'll need the .NET Core command line tool to compile the application.

    $ dotnet build
  • Run the application in your command line prompt / terminal.
    $ cd BlogML2Hugo
    $ dotnet run <path-to-blogml.xml> <path-of-content-post-in-hugo>

License

This code is licensed under the MIT lincense.

About

A tool that helps you convert your BlogML xml file into Hugo markdown files

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages