jekyll-github-sample icon indicating copy to clipboard operation
jekyll-github-sample copied to clipboard

Possible to pass repo as a variable instead of as a string?

Open heavyimage opened this issue 7 years ago • 0 comments
trafficstars

I'm in a bit of a pickle; I really want to do something like this:

{% assign readmepath=page.github_repo | append: "/master/README.md" %}
{% capture readme_in_markdown %}{% github_sample readmepath %}{% endcapture %}
{{ readme_in_markdown | markdownify }}

But...github_sample thinks that readmepath is the path I'm talking about. Is there anyway to upgrade this gem so that it handles a variable name or a url string?

People have asked about this stuff before in places like this

I'm trying to store github repos in my frontmatter and then, if extant and valid, fetch the README.md files.

Thanks!

heavyimage avatar Mar 23 '18 04:03 heavyimage