Go to file
curben ae553dc4db Remove ToC from readme
Automatic generation of ToC on readme requires Kramdown.
https://gitlab.com/gitlab-com/gitlab-docs/issues/50
https://about.gitlab.com/handbook/product/technical-writing/markdown-guide/#table-of-contents-toc
2018-09-21 15:38:38 +09:30
scaffolds first commit 2016-02-29 20:25:06 +06:00
source Update post title 2018-09-21 14:58:53 +09:30
themes/typing Don't display list number 2018-09-21 15:29:58 +09:30
.gitignore first commit 2016-02-29 20:25:06 +06:00
.gitlab-ci.yml Compress files when deploy site 2018-09-19 21:13:24 +09:30
README.md Remove ToC from readme 2018-09-21 15:38:38 +09:30
_config.yml Remove unused config 2018-09-20 13:57:23 +09:30
package.json Use latest nodejs, upgrade hexo packages 2018-09-18 19:01:05 +09:30

README.md

curben.gitlab.io

Build Status https://www.npmjs.com/package/hexo

Forked from GitLab's Hexo example with Typing theme.

Installation

  1. Change <folder> to a preferred name.
git clone https://gitlab.com/curben/curben.gitlab.io <folder>
  1. Install Node.js.
# Installing npm will also install nodejs as dependency.
# Ubuntu/Debian
sudo apt-get install npm
# Fedora/Red Hat
sudo yum install npm
# Arch Linux
sudo pacman -S npm
  1. Install Hexo and its dependencies (defined in package.json).
$ sudo npm install -g hexo-cli
$ cd <folder>
$ npm install
  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 from the upstream.

Hexo

  • Update .gitlab-ci.yml to use the latest version of Node.js in the Docker image.
  • Update package.json to use latest version of hexo and its related packages.
  • Replace the bundled Landscape theme with Typing theme.

Typing theme

  • Homepage shows index of posts.
  • Remove header and footer display (except for /about page).
  • Use the latest version of jQuery, fancyBox and Font Awesome
  • All js and css files are self-hosted.
  • Remove analytic, comment system and donation links.

Useful links: Hexo Docs GitLab Pages