Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
GitHub Essentials

You're reading from   GitHub Essentials Unleash the power of collaborative development workflows using GitHub

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789138337
Length 178 pages
Edition 2nd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Achilleas Pipinellis Achilleas Pipinellis
Author Profile Icon Achilleas Pipinellis
Achilleas Pipinellis
Arrow right icon
View More author details
Toc

Tips and tricks

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

Making use of Github 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 to the repository directory and make sure you are in the master branch and up to date:

git checkout master
git pull origin master

Next, copy...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime