The Witcher 2 and bohurt

Playing Witcher 2 this week-end, and suddenly… but I lived that. Could not help myself but make my first video about this.
The assault of a castle is finally no so different from the 21 vs 21 Battle Of Nations or Chateau-Thierry assault tournaments!

Hexo as a Blog

This is not really an active blog. There is merely one article a month, that I write when I want to re-think an architecture I encountered or I want to keep a track on a receipe. If I take time to do so, why not sharing it into a blog!

I choose Hexo because it seems easy to add arcticles, to configure and to deploy while staying independant of blog platforms.
Here is my experience.

Tool

  • Visual Studio code has proven to be a perfect IDE to write markdown text on an Linux HiDPI environment. Exactly what I was looking for.
  • FileZila : I do not automatically upload via FTP to my server, I didn’t manage to make it work. But manual deployement is working well with this tool.

To start working on local, a simple all in one command line allow me to start everything on linux:

1
hexo generate --watch & hexo server -p 5000 & filezilla & /usr/bin/code '/media/data/workspace/notepadblog-hexo/source'

The server is set up, the auto-build feature too and my two tools are ready to be used.

Config

Starting up can take time, because the official documentation is a bit light and it’s difficult to counter bugs. I base my configuration only on working exemples. Here is mine.

Node.js requirements

1
2
3
4
5
6
7
8
9
10
11
12
npm install hexo
npm install hexo-cli -g
npm install hexo-cli
npm install hexo-server --save
npm install hexo-generator-feed --save
npm install hexo-generator-tag
npm install hexo-generator-category
npm install hexo-generator-index
npm install hexo-generator-archive
npm install hexo-renderer-ejs
npm install hexo-renderer-marked
npm install hexo-renderer-stylus

Here my config file in case anyone would like to compare to his version

package.json file

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "BlockNote",
"version": "1.0.0",
"private": false,
"hexo": {
"version": "3.1.1"
}
,

"dependencies": {
"hexo": "^3.1.1",
"hexo-deployer-ftpsync": "^0.1.1",
"hexo-generator-archive": "^0.1.2",
"hexo-generator-category": "^0.1.2",
"hexo-generator-feed": "^1.0.3",
"hexo-generator-index": "^0.1.2",
"hexo-generator-sitemap": "^1.0.1",
"hexo-generator-tag": "^0.1.1",
"hexo-renderer-ejs": "^0.1.0",
"hexo-renderer-marked": "^0.2.4",
"hexo-renderer-stylus": "^0.2.0",
"hexo-server": "^0.1.2"
}

}

_config.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Site
title: BenNotes
subtitle:
description:
author: B. Delville
timezone:
language: en

# Third Parties
disqus_shortname: hithredin
google_analytics: UA-blablabla

# URL
url: http://blog.hithredin.eu
root: /
permalink: :category/:title/
language_detect_in_path: true
language_detect_first_level: true
permalink_defaults:
lang: en

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :lang/:title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: true
tab_replace:

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

sitemap:
path: sitemap.xml

feed:
type: atom
path: atom.xml
limit: 10

# Date / Time format
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 3
pagination_dir: page

# Extensions
theme: landscape

# Deployment
deploy:
type: ftpsync
host: ftp.hithredin.eu
user: blablabla
pass: blablabla
remote: /blog
port: 22
ignore: true
verbose: false

Todo

My next objective consists on having a working internationalization blog with most article availables on french and english.