Skip to content

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

Description

@heavyimage

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions