O'Reilly logo

GitHub Essentials by Achilleas Pipinellis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tips and tricks

The next tip is to use some advanced techniques that use the GitHub API.

Making use of pages metadata with Jekyll

GitHub provides some metadata when using Jekyll for GitHub Pages. This means that you can add certain keywords in the Jekyll templates and these will be rendered automatically.

For example, you could add the {{ site.github.project_title }} variable, and the project title would be filled by GitHub automatically.

Following the example in the Introduction to Jekyll section of this chapter, we will add a new post to the Jekyll site. Firstly, head over the repository directory and make sure you are in the gh-pages branch:

git checkout gh-pages

We will copy the default post to have it as a reference (the dates in your site will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required