1
Fork 0

Stop fetching metadata from GitHub

This commit is contained in:
Jake Howard 2020-04-05 19:33:30 +01:00
parent c2a2d75110
commit 20a9f31882
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 3 additions and 13 deletions

View file

@ -8,7 +8,9 @@
{{ end }}{{ end }}
{{ partial "breadcrumbs/index.html" . }}
<h1 class="display-4">{{ .Title }}</h1>
<h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
{{ if .Params.subtitle }}
<h5 class="my-3">{{ markdownify .Params.subtitle }}</h5>
{{ end }}
{{ if ne .Kind "section" }}
<p>{{ partial "content-details.html" . }}</p>
{{ end }}

View file

@ -1,7 +0,0 @@
{{ if .Params.subtitle }}
{{ markdownify .Params.subtitle }}
{{ else if .Params.repo }}
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
{{ else if .Params.gist }}
{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
{{ end }}

View file

@ -2,9 +2,4 @@
{{ .Summary | chomp }}{{ if .Truncated }}&hellip;{{ end }}
{{ else if .Params.subtitle }}
{{ .Params.subtitle | markdownify }}
{{ else if .Params.repo }}
{{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
{{ else if .Params.gist }}
{{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
{{ end }}