A redo of the blog using Hugo
HTML CSS Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
archetypes
content
data
layouts
public
static
themes
.agignore
.gitmodules
README.md
config.yaml
deploy.sh
new-post.sh
serve.sh

README.md

hugo-blog

My attempt to use Hugo to replace my existing Octopress blog.

Install

$ git clone git@github.com:jkamenik/jkamenik.github.io
$ cd jkamenik.github.io
$ git checkout drafts
$ git submodule update --init --recursive

Note: you will need docker.

Serve the blog

$ ./serve.sh

Open up http://localhost to see the blog

Publish

$ ./deploy.sh

New Post

$ ./new-post.sh name-of-post.md

Porting old blog

The old blog is here, and I assume it is checked out into a directory next to this one called orig-blog.

Follow these step to port the old posts:

  1. Copy files from ../orig-blog/source/_posts/<file> to ./content/posts
  2. may also be a pattern like '*' but remember to work the files one at a time.
  3. Rename the file from .markdown to .md
  4. Edit the front matter
  5. Remove: layout, toc, published
  6. Change comments to disableComments, and reverse the logic
  7. Change published to draft, and reverse the logic
  8. Change categories to tags
  9. Correct the time format to YYYY-MM-DDTHH:MM:SS-05:00
  10. Adding a "T" between day and hour
  11. Adding seconds and a timezone
  12. Check the main listing to ensure the blurb is formatted correctly
  13. Change <!-- more --> to <!--more--> (no spaces)
  14. Check the page to ensure it is formatted correctly
  15. Commit the page.