Spring is a blog engine written by GitHub Issues, or is a simple, static web site generator. No more server and database, you can setup it in free hosting with GitHub Pages as a repository, then post the blogs in the repository Issues.
You can add some labels in your repository Issues as the blog category, and create Issues for writing blog content through Markdown.
Spring has responsive templates, looking good on mobile, tablet, and desktop.Gracefully degrading in older browsers. Compatible with Internet Explorer 10+ and all modern browsers.
Get up and running in seconds.
For the impatient, here's how to get a Spring blog site up and running.
- Fork the Spring repository as yours.
- Goto your repository settings page to rename
Repository Name. - Hosted directly on GitHub Pages from your project repository, you can take it as User or organization site or Project site(create a gh-pages branch).
- Also, you can set up a custom domain with Pages.
-
Open the
index.htmlfile to edit the config variables with yours below.$.extend(spring.config, { // my blog title title: 'Spring', // my blog description desc: "A blog engine written by github issues [Fork me on GitHub](https://github.com/zhaoda/spring)", // my github username owner: 'zhaoda', // creator's username creator: 'zhaoda', // the repository name on github for writting issues repo: 'spring', // custom page pages: [ ] })
-
Put your domain into the
CNAMEfile if you have. -
Commit your change and push it.
- Goto your repository settings page to turn on the
Issuesfeature. - Browser this repository's issues page, like this
https://github.com/your-username/your-repo-name/issues?state=open. - Click the
New Issuebutton to just write some content as a new one blog.
- Browser this repository's GitHub Pages url, like this
http://your-username.github.io/your-repo-name, you will see your Spring blog, have a test. - And you're done!
- You will need a web server installed on your system, for example, Nginx, Apache etc.
- Configure your spring project to your local web server directory.
- Run and browser it, like
http://localhost/spring/dev.html. dev.htmlis used to develop,index.htmlis used to runtime.
spring/
βββ css/
| βββ boot.less #import other less files
| βββ github.less #github highlight style
| βββ home.less #home page style
| βββ issuelist.less #issue list widget style
| βββ issues.less #issues page style
| βββ labels.less #labels page style
| βββ main.less #commo style
| βββ markdown.less #markdown format style
| βββ menu.less #menu panel style
| βββ normalize.less #normalize style
| βββ pull2refresh.less #pull2refresh widget style
| βββ side.html #side panel style
βββ dist/
| βββ main.min.css #css for runtime
| βββ main.min.js #js for runtime
βββ img/ #some icon, startup images
βββ js/
| βββ lib/ #some js librarys need to use
| βββ boot.js #boot
| βββ home.js #home page
| βββ issuelist.js #issue list widget
| βββ issues.js #issues page
| βββ labels.js #labels page
| βββ menu.js #menu panel
| βββ pull2refresh.less #pull2refresh widget
| βββ side.html #side panel
βββ css/
| βββ boot.less #import other less files
| βββ github.less #github highlight style
| βββ home.less #home page style
| βββ issuelist.less #issue list widget style
| βββ issues.less #issues page style
| βββ labels.less #labels page style
| βββ main.less #commo style
| βββ markdown.less #markdown format style
| βββ menu.less #menu panel style
| βββ normalize.less #normalize style
| βββ pull2refresh.less #pull2refresh widget style
| βββ side.html #side panel style
βββ dev.html #used to develop
βββ favicon.ico #website icon
βββ Gruntfile.js #Grunt task config
βββ index.html #used to runtime
βββ package.json #nodejs install config- Browser
http://localhost/spring/dev.html, enter the development mode. - Changes you want to modify the source code, like
css,jsetc. - Refresh
dev.htmlview change.
-
You will need Node.js installed on your system.
-
Installation package.
$ npm install
* Run grunt task.
```bash
$ grunt
- Browser
http://localhost/spring/index.html, enter the runtime mode. - If there is no problem, commit and push the code.
- Don't forget to merge
masterbranch intogh-pagesbranch if you have. - And you're done! Good luck!
- Check if the bug is already fixed in the master branch since the last release.
- Check existing issues.
- Open a new one, including exact browser & platform information.
If you are using, please tell me.
Spring is available under the terms of the MIT License