A modified version of the Apollo theme (pinggod/hexo-theme-apollo) for Hexo
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 11 commits ahead, 98 commits behind pinggod:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
layout
source
.editorconfig
.gitignore
LICENSE
README.md
_config.yml
gulpfile.js
package.json
snapshot.png
yarn.lock

README.md

yg-apollo

This is a modified version of the Apollo theme for Hexo

Building

To build the theme, make sure to install the NPM dependencies using npm install and then run gulp.

npm install
gulp

Installing

The suggested method for installing Hexo themes is to clone their repositories under the themes/ folder of a Hexo website, but this causes a massive slow down on the startup time of the Hexo server because it tries to index everything under the theme's own node_modules folder.

My solution is to instead clone the theme repository into a whole separate folder (outside of the Hexo installation), place an empty folder with the theme's name under the themes/ folder (in this case, themes/yg-apollo) and simply create symbolic links to the following files and folders:

Folders

  • layout
  • source

Files

  • _config.yml

This ensures that Hexo indexes only the necessary files, allowing both Hexo's hexo server command and the theme's gulp (and their watchers) to run simultaneously, therefore speeding up the development process.

Once the symbolic links are set up, simply edit your Hexo installation's _config.yml and set the theme parameter as yg-apollo.

Added Features and Functionality

  • 404, Archive, Tag and Browse pages
  • Font Awesome-based icon support for main menu
  • An atom feed link in the footer
  • Tweet and Share buttons for Twitter and Facebook
  • Variable-based SASS rules
  • Reduced blank spaces and a larger content area (1080px wide as opposed to 700px)
  • Larger clickable areas for main menu items
  • Self-hosted fonts
  • English documentation and pagination handles
  • Optional MathJax support (as opposed to always-enabled)

License

MIT