Valentin Sawadski

I've been working with GitHub Pages lately. For a simple integration of Project Pages into User Pages the following code snippet comes in handy

---
title: your-project-name-an-github
---


{% for r in site.github.public_repositories %}
    {% if r.name == page.title %}
        {% assign repository = r %}
    {% endif %}
{% endfor %}

If title matches your repository name the variable repository will contain repository information like name, description and URLs.

E.g. my vagrant-jekyll-gh-pages repository has the following metadata



This work is licensed under a Creative Commons Attribution 4.0 International License. Hosted by GitHub. Impressum