简体   繁体   中英

Can I access metadata from a third-party GitHub repo from a Jekyll site on github-pages?

It is possible to access repository metadata from a Jekyll site hosted in a gh-pages branch on GitHub .

I am now building a site where it'd help enormously if I had access to the metadata of another (of my) repositories (here called a third-party repository because technically it is that).

Is there any way I can set up Jekyll so that I can use metadata from that third-party repo? Ie, make Jekyll able to use metadata from two repositories rather than just the local {{ site.github }} one?

There is no liquid tag that allows you to get site metadatas from an other repository.

The only way to do this is to use GitHub API on the client side with the help of javascript libraries like github.js .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM