Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apetenchea/cdroot

Blog
https://github.com/apetenchea/cdroot

hexo-blog

Last synced: about 22 hours ago
JSON representation

Blog

Awesome Lists containing this project

README

        

# cd /root

This is the source of https://apetenchea.github.io.
If you want to set up a similar blog, here's a nice [article](https://angelkyriako.github.io/2017/01/24/hexo-tutorial/).

## Additional dependencies
In case you ever need to reinitialize the blog, install these packages afterwards.
```
npm install hexo-deployer-git --save
npm install hexo-renderer-marked --save
npm install hexo-tag-github-code --save
npm install mathjax@3 --save
```
In order to host [MathJax](https://github.com/mathjax/MathJax) yourself, move the `es5` folder into `source/javascript/mathjax`:
```bash
mv node_modules/mathjax/es5 source/javascript/mathjax
```
At the bottom of the pages that use MathJax, add the following line:
```html

```

## Hexo commands
`hexo -v` - version information
`hexo init cdroot` - initialize site (only during repo creation)
`hexo server` - start local server
`hexo new post "title"` - create a new post
`hexo s -o` - start server and open the blog page in browser

## Deploy
```
hexo clean
hexo generate
hexo deploy
```