valleyrain-org / www-old

谷雨书苑
http://www.valleyrain.org
Apache License 2.0
2 stars 3 forks source link

WWW for valleyrain.org

Join the chat at https://gitter.im/valleyrain-org/www

This project is for http://www.valleyrain.org website. Right now it is based on Jekyll Static Site Generator using Clean Blog theme.

The website is hosted as GitHub Project Pages, and content is on "gh-pages" branch.

Before You Begin

In the _config.yml file, the base URL is set to /startbootstrap-clean-blog-jekyll which is this themes gh-pages preview. It's recommended that you remove the base URL before working with this theme locally!

It should look like this: baseurl: ""

What's Included

A full Jekyll environment is included with this theme. If you have Jekyll installed, simply run jekyll serve in your command line and preview the build in your browser. You can use jekyll serve --watch to watch for changes in the source files as well.

To install Jekyll (on Mac Mavericks):

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll
sudo gem install jekyll-sitemap jekyll-redirect-from

A Grunt environment is also included. There are a number of tasks it performs like minification of the JavaScript, compiling of the LESS files, adding banners to keep the Apache 2.0 license intact, and watching for changes. Run the grunt default task by entering grunt into your command line which will build the files. You can use grunt watch if you are working on the JavaScript or the LESS.

You can run jekyll serve --watch and grunt watch at the same time to watch for changes and then build them all at once.

Support

Please open github project issues or send pull requests if any problems are found.