January 7, 2020

 

Blog migration to hugo

As I wrote some time ago, I decided to self-host blog. I'm in process still, however here's some experience.

Sharing here some experience in process (will update this post until done).

TL;DR:
  1. Install latest hugo with snap
  2. Find and install theme (with git submodule - see below)
  3. Try blog with "hugo server ..."
  4. Setup publishing pipeline on blog changes (for example, Jenkins or whatever is preferred).
Detailed steps:
  1. Install blogger_to_hugo migration tool
  2. (This one is not specific to anyone I suppose. I don't want to experiment with lots of new packages in my main macos system, so installing debian 9 as vbox VM. All further is done there).
  3. Run migration from blogger backup with blogger_to_hugo. I got an error:
    TypeError: object of type 'NoneType' has no len()

    Seems like it expects only the english post titles (or maybe texts in english too) and crashes otherwise. Too bad.
  4. Use blog2md which produces a bunch of .md files (not sure about non-english titles, but no crash at least).
  5. Install and try to use zzo theme. It turns out that hugo 0.58 is not compatible. Although it's latest in debian sid (unstable) repo!
  6. Use snap installer (another repo to think of..): snap install hugo
  7. Hmm, zzo theme does still not work showing bunch of "render of 'page' failed..." errors and crashing in the end. Could be a non-english titles.
  8. Trying a hugo theme pure.
  9. Copy and edit config from example site of a chosen theme.
Good points: Bad points: Notes:

Labels: , , , , , ,

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?