Hello World

In last past 10 more years, i used to create few online shared place, but all abandoned for even just few months.

Suddenly today, i want to do it again, and want to see how long i can keep, i hope i can do it for long terms.

Find a domain or name

Too much wording come in my mind, i keep remind me Content is king, do NOT spend too much time on something else. after use domain name search tools to do some search, finially pick name ohmycoding.com.

To be simple, i didn’t try to use some cheap one doller domain, purchased on google domains.

And also for communicate needs, i applied a new google email account ohmycoding#gmail.com.

Define your server/hosting

Simple, Cheap solution: github pages. so, i create a github account and also ohmycoding.com repo, changes settings:

  • Source to master branch
  • Custom domain set my own domain here ohmycoding.com
  • Enforce HTTPS this option should take longer for certification reason (you can set it for later)

Pick a right site generator

Since i’m using github pages as hosting, so find a right site generator to generate static html is the best solution. couple known solutions:

I picked hexo and cactus light theme, steps:

install hexo

1
2
3
4
5
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

install cactus theme

in blog folder

1
git clone https://github.com/probberechts/hexo-theme-cactus.git themes/cactus

change _config.yml in root folder

1
2
3
4
5
6
7
theme: cactus
theme_config:
colorscheme: light
page_width: '100%'
deploy:
type: git
repo: https://github.com/ohmycoding/ohmycoding.com

change title, author

file: ./themes/cactus/layout/_partial/post/actions_desktop.ejs
remove:

1
<li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>

file: ./themes/cactus/layout/_partial/post/actions_mobile.ejs
remove:

1
<a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> <%= __('post.mobile.back_to_top') %></a>

file: ./themes/cactus/_config.yml

1
2
3
4
5
6
7
8
9
  about: /about/
projects: projects_url

# social_links:
# github: http://github.com/probberechts/cactus-dark
# twitter: /
# facebook: /
# linkedin: /
# mail: mailto:name@email.com

change wording Writing to Articles

file: ./themes/cactus/languages/default.yml

Useful hexo command

1
2
3
hexo server
hexo generate
hexo deploy