Example project to use JBake with Maven.
Based on the work:
-
jbake-sample
-
JBake 2.4.0 (example project structure)
See the output online: http://jmini.github.io/jbake-sample/
Generate the site with JBake:
>mvn process-resources
Output is target/jbake-sample
Commit generate the site and push it to github pages:
>mvn site
Do not forget to provide your GitHub credentials in your settings.xml file.
See GitHub Maven Plugins for more information.
This setup can be reused for your own website/blog. You can copy it and adapt it to your website.
-
pom.xml-
Change the maven
groupIdandartifactId -
Change the properties
github.repository.ownerandgithub.repository.name -
Change the
finalNameat the beginning of thebuild -
If your GitHub pages needs to commit on the
masterbranch, adapt thesite-maven-pluginconfiguration
-
-
src/main/jbake/jbake.properties-
Change the
site.hostvariable
-
-
Templates are based on the initial groovy templates.
-
Use English Locale in the date formatter (see jbake-example-project-groovy/#2)
-
Add an "Edit on GitHub" link on each post/page (see discussion on the mailing-list)
-
Fix relative links (see discussion on the mailing-list)
Use the GitHub issue tracker or @j2r2b on Twitter.