0x01 - Hexo Fluid Theme Setup
“Hexo is a fast, simple, and powerful blog framework. You write posts in Markdown (or other markup languages), and Hexo generates static files with a beautiful theme in seconds.” - Hexo official website.
The basic Hexo deployment is pretty bland, but the real magic of Hexo comes into play with the introduction of themes and plugins. Here, I will provide a step-by-step guide on how to set up Hexo and also install the most popular Hexo theme known as Fluid.
This Hexo installation guide is created for Ubuntu machines.
Installation
Elevating the priviliges:
1 |
|
Disabling firewall:
1 |
|
Updating the machine:
1 |
|
Installing required
1 |
|
Installing nvm (node(js) version manager):
1 |
|
Adding path of nvm:
run the following command as one command
1 |
|
Installing/upgrading node(js) and updating sources:
1 |
|
Installing Hexo:
1 |
|
creating hexo project:
1 |
|
Installing the Fluid theme:
1 |
|
Adding the Fluid theme to Hexo blog:
1 |
|
change the theme to Fluid
from Landscape
which is the default
To install the css package:
1 |
|
Running the Hexo server (to test):
1 |
|
Github Deployment
The github deployment can be performed two ways using Hexo git deployer (which uses Github workflow) or through git pages setup
Option 1 - provides github pages deployment
Option 2 - provides github workflow/actions deployment (preferred and what I myself use)
Option 1 - Using Hexo git deployer
Installing hexo-deployer-git:
1 |
|
Authenticating to Github:
Installing Github
1 |
|
Optional - but recommended github configs:
1 |
|
be sure to change the username
with your username and email@example.com
to your email.
Adding the github pages details:
Make sure to edit the _config file with the following changes:
1 |
|
Make sure to change the repo
to your repo link.
Generating the blog:
1 |
|
Option 2 - Github workflow/actions deployment
Authenticating to Github:
Installing Github
1 |
|
Optional - but recommended github configs (I did these):
1 |
|
be sure to change the username
with your username and email@example.com
to your email.
Uploading the blog to github:
1 |
|
Now if you may be thinking how can we edit the default title, images, icons, etc. and for that you can read the official documentation for Hexo and Fluid which is cryptic to say the least or follow through this blogging using hexo & fluid 101 guide