jmperez.github.com
jmperez.github.com copied to clipboard
JMPerez Blog powered by Hexo
JMPerez Blog
This is the source code for my blog jmperezperez.com. It uses Hexo to generate static pages.
These are some interesting features:
- It is hosted as GitHub pages and served with a custom domain.
- It supports redirects so old URLs are redirected to their new location.
- It uses clean-css to minify CSS assets, which are later inlined.
- It has very good performance.
- It scores 100/100 on Lighthouse thanks to its ServiceWorker and manifest file. When offline, you can still access the home, about, and project pages, as well as any page that has been previously browsed.
- It supports AMP (Accelerated Mobile Pages) through hexo-generator-amp.
Installing it
After cloning the project, install the npm
dependencies and Hexo
:
$ npm i && npm i hexo -g
Developing
Run:
$ hexo server
Then open http://localhost:4000/ in a browser.
Generating output
$ hexo generate
Deploying
$ hexo deploy