Stop fetching metadata from GitHub
This commit is contained in:
parent
c2a2d75110
commit
20a9f31882
3 changed files with 3 additions and 13 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
|
@ -2,9 +2,4 @@
|
|||
{{ .Summary | chomp }}{{ if .Truncated }}…{{ 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 }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue