Skip to content

harvard/harvard.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source at Harvard

Contributing

Open a pull request, adding your repo's URL to https://github.com/IQSS/open-source-at-harvard/blob/master/github.tsv which will be copied over to _data/github.tsv.

Developing

bundle install
bundle exec jekyll build
open _site/index.html

Notes

In index.md, get is a Jekyll filter implemented in _plugins/get.rb that takes _data/github.tsv as input and returns an array of [user, repos] "tuples" (i.e., arrays), wherein user (the owner of repos) is a hash like https://api.github.com/users/harvard, and repos is a hash like https://api.github.com/repos/harvard/harvard.github.io.

You can iterate over those tuples as follows:


{% assign tuples = site.data.github | get %}

{% for tuple in tuples %}

{% assign user = tuple[0] %}
{% assign repos = tuple[1] %}

{% for repo in repos %}

...

{% endfor %}

{% endfor %}

Releases

No releases published

Packages

No packages published

Languages