https://github.com/mdecker-mobilecomputing/hexo-demo
Demo for Static Site Generator Hexo
https://github.com/mdecker-mobilecomputing/hexo-demo
gh-pages hexo-blog
Last synced: 4 months ago
JSON representation
Demo for Static Site Generator Hexo
- Host: GitHub
- URL: https://github.com/mdecker-mobilecomputing/hexo-demo
- Owner: MDecker-MobileComputing
- Created: 2023-10-12T15:36:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:08:15.000Z (over 1 year ago)
- Last Synced: 2025-10-25T05:38:25.871Z (8 months ago)
- Topics: gh-pages, hexo-blog
- Homepage:
- Size: 414 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hexo-Demo #
The purpose of this repository is it to demonstrate the use of [Hexo](https://hexo.io/), which is a *Static Site Generator*.
In the repository you'll find the Hexo project and also the web site generated by it.
The web site generated based on the sources and configurations in the repository can be viewed at:
**https://mdecker-mobilecomputing.github.io/Hexo-Demo/**
----
## Working with the Hexo project ##
You'll need a global installation of *Hexo*, so install it as follows:
```
npm install -g hexo-cli
```
After cloning of this repository you have to call the following command to fetch the dependencies defined in file `package.json`:
```
npm install
```
Then you can start the preview of the site:
```
hexo server
```
To create another posting the following command can be used
```
hexo new "title of new posting"
```
To generate the web content, call the following commands:
```
hexo clean
hexo generate
```
----
## About this Hexo project/site ##
In file [_config.yml](_config.yml) the output folder was changed from `public/` to `docs/` (see key `public_dir`).
The reason for this was to enable simple serving of the generated web content with [GitHub pages](https://pages.github.com/).
The source files for the articles and pages written in Markdown syntax can be found in folder [source/](source).