Skip to content

Commit f8a3daf

Browse files
author
Jijie Chen
committed
Added a readme
1 parent 278131b commit f8a3daf

2 files changed

Lines changed: 42 additions & 4 deletions

File tree

BlogML2Hugo/Program.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ static string ComposeBlogHeader(BlogMLPost post, Dictionary<string, CategoryRef>
137137
header.AppendLine("]");
138138
// header.AppendLine("isCJKLanguage: true");
139139

140-
if (post.HasExcerpt)
141-
{
142-
header.AppendLine("]");
143-
}
144140

145141
header.AppendLine("---");
146142
return header.ToString();

README.MD

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
BlogML to Hugo
2+
===================
3+
This tool helps you convert your exported BlogML xml file to Hugo friendly markdown files.
4+
Many blog engines can generate BlogML files. If you want to migrate your blog to hugo, this tool may be helpful for you.
5+
6+
7+
8+
Running the application
9+
-----------
10+
11+
Some prebuilt binaries are ready for Windows and macOS in the [release section](https://github.com/jijiechen/BlogML2Hugo/releases), but they not work as OS upgrades. If so, please follow following steps in the `Running from source` paragraph to built it by yourself.
12+
13+
Open a command line prompt / terminal / PowerShell, and type in the following commandline (without the $):
14+
15+
```sh
16+
$ ./BlogML2Hugo <path-to-blogml.xml> <path-of-content-post-in-hugo>
17+
```
18+
19+
Wait for completion.
20+
21+
22+
Running from source
23+
-----------
24+
25+
Before running, you need to compile the application from this source. You'll need the [.NET Core command line tool](https://www.microsoft.com/net/download) to compile the application.
26+
27+
```sh
28+
$ dotnet build
29+
```
30+
31+
- Run the application in your command line prompt / terminal.
32+
33+
```sh
34+
$ cd BlogML2Hugo
35+
$ dotnet run <path-to-blogml.xml> <path-of-content-post-in-hugo>
36+
```
37+
38+
License
39+
-----------
40+
This code is licensed under the [MIT lincense](https://opensource.org/licenses/MIT).
41+
42+

0 commit comments

Comments
 (0)