Go to file
curben 2b3302bdf8 style: remove 'how to' from title and filename 2019-06-02 14:33:31 +09:30
scaffolds first commit 2016-02-29 20:25:06 +06:00
source style: remove 'how to' from title and filename 2019-06-02 14:33:31 +09:30
themes/typing feat: add search function to mobile page 2019-06-01 18:51:51 +09:30
.gitignore Upgrade hexo to 3.8.0 2018-10-26 13:07:23 +10:30
.gitlab-ci.yml chore: install git 2019-06-02 14:31:08 +09:30
.npmrc refactor: disable package-lock.json 2018-10-28 18:01:18 +10:30
.nvmrc Use latest version of node on netlify 2018-10-11 17:18:54 +10:30
.snyk chore: update snyk policy 2019-04-12 12:57:47 +09:30
LICENSE.md Add license 2018-10-25 14:50:01 +10:30
README.md docs(readme): consistent badge colour 2019-05-26 11:39:03 +09:30
_config.yml fix: exclude webmaster verification file from rendering 2019-05-30 18:15:15 +09:30
netlify.toml refactor: unify HTTP header settings into _headers 2019-05-26 15:09:27 +09:30
package.json fix: cheerio doesn't escape '<' character 2019-06-02 14:12:45 +09:30

README.md

curben.netlify.com

Netlify Status Build Status Hexo version

Forked from GitLab's Hexo example with Typing theme.

Installation

Refer to this post for more detailed instruction.

  1. Change <folder> to a preferred name.
git clone https://gitlab.com/curben/blog <folder>
  1. Install Node.js.
# Ubuntu 16.04 or newer
$ sudo snap install node --classic --channel=10
# Debian
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs
# Fedora 29
$ sudo dnf install npm
# Fedora 28 or older
$ curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
$ sudo yum -y install nodejs
# Arch Linux
$ sudo pacman -S npm
  1. Install Hexo and its dependencies (defined in package.json). hexo-cli installation step can be skipped if you use this shortcut.
$ sudo npm install -g hexo-cli
$ cd <folder>
$ npm install --only=prod
  1. Generate static files to check for any error. You should always do this before pushing/merging commits to the master branch.
$ hexo generate

Quick Start

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment

Changes

The following are the major changes I made compared to the upstream.

Hexo site

Typing theme

  • Homepage shows index of posts.
  • Remove header and footer display (except for /about page).
  • Use the latest version of jQuery, fancyBox, Fork Awesome and clipboard.js.
  • Remove web analytics, comment systems and donation links.
  • Use more relative length, instead of absolute length in the css.

License

The content of this blog is licensed under the Creative Commons Attribution Share Alike 4.0 International license, and the underlying source code used to format and display that content is licensed under the MIT license.


Useful links: