Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stormcat24/hateblo2hugo

migration tool hatenablog to hugo
https://github.com/stormcat24/hateblo2hugo

blog hatena-blog hugo migration

Last synced: 2 months ago
JSON representation

migration tool hatenablog to hugo

Awesome Lists containing this project

README

        

hateblo2hugo
=======

[![Circle CI](https://circleci.com/gh/stormcat24/hateblo2hugo.svg?style=shield&circle-token=388632f89f829c91445405176f51c11bd066e3d5)](https://circleci.com/gh/stormcat24/hateblo2hugo)
[![Language](https://img.shields.io/badge/language-go-brightgreen.svg?style=flat)](https://golang.org/)
[![issues](https://img.shields.io/github/issues/stormcat24/hateblo2hugo.svg?style=flat)](https://github.com/stormcat24/hateblo2hugo/issues?state=open)
[![License: MIT](https://img.shields.io/badge/license-MIT-orange.svg)](LICENSE)
[![GoDoc](https://godoc.org/github.com/stormcat24/hateblo2hugo?status.png)](https://godoc.org/github.com/stormcat24/hateblo2hugo)

hateblo2hugo is a tool to migrate blog data of [hatenablog](http://hatenablog.com/) to markdown data for Hugo.

![img](img/hateblo2hugo_01.png)

### Install

```bash
$ go get github.com/stormcat24/hateblo2hugo
```

### Preparation

Before use this tool, you must export blog data from hatenablog. Data format of hatenablog is Movable Type.

![img](img/hateblo2hugo_02.png)

### Usage

```bash
$ hateblo2hugo migrate -i ~/your_path/your_hatenablog.export.txt -o ~/your_path/your_hugo_blog/blog/
```

### Migration Features

* Remove Hatena Keyword link
* Download images from hatena photo life, and locate files to `{blog_dir}/static/images` directory.
* Embed contents
* Tweet
* Speakerdeck
* General links
* GitHub Repository (use [lepture/github-cards](https://github.com/lepture/github-cards) )
* Code syntax

### Example using hateblog2hugo

* [http://stormcat.hatenablog.com](http://stormcat.hatenablog.com) to [https://blog.stormcat.io](https://blog.stormcat.io)

License
===
See [LICENSE](LICENSE).

Copyright © stromcat24. All Rights Reserved.