Skip to content

47Billion/blog12

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Install Hexo

sudo npm install hexo -g

Clone and build.

git clone https://github.com/47Billion/blog.git
cd blog
npm install

New post

hexo new "Title Of The Post"

This will create these -

▶ tree source/_posts
source/_posts
|-- Title-Of-The-Post       // Dir for assets
|-- Title-Of-The-Post.md    // Content

Insert image

  • Copy the image to 'Title-Of-The-Post' folder. Let's say the name of the image is 'python.png'
  • Wherever you need to insert this image, add this
{% asset_img python.png 'Image-Alt-Text' %}

Run local server

hexo server

Blog - [http://localhost:4000][6034aa1d] [6034aa1d]: http://localhost:4000 "http://localhost:4000" Admin - [http://localhost:4000/admin ][779be60d] [779be60d]: http://localhost:4000/admin "http://localhost:4000/admin"

Deploy to blog

Generate the static files,

hexo generate

Now, deploy -

hexo deploy

You might need to provide you github credentials. Also see - https://yeejlan.github.io/remark/host-blog-on-github-using-hexo.html#1

Live blog

[http://47billion.com/blog][525f93a8] [525f93a8]: http://47billion.com/blog "http://47billion.com/blog"