Skip to content

Instantly share code, notes, and snippets.

@sdvcrx
Created September 13, 2022 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdvcrx/baeffcb79dd1e69e7b2ed5ac30d55259 to your computer and use it in GitHub Desktop.
Save sdvcrx/baeffcb79dd1e69e7b2ed5ac30d55259 to your computer and use it in GitHub Desktop.
{{ $repo := .Get "repo" }}
{{ $detail := getJSON "https://api.github.com/repos/" $repo }}
<article class="shortcode-card">
<a href="https://github.com/{{ $repo }}" target="_blank" rel="noopener">
<header>
<img alt="{{ $repo }}" src="https://opengraph.githubassets.com/1/{{ $repo }}" />
</header>
<div class="shortcode-card-content">
<h2>{{ .Get "repo" }}</h2>
{{ with $detail }}
<p>{{ .description }}</p>
{{ end }}
<span>github.com</span>
</div>
</a>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment