From 20a9f3188265adab6b7dbbc0fa144f6a19492c46 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 5 Apr 2020 19:33:30 +0100 Subject: [PATCH] Stop fetching metadata from GitHub --- layouts/partials/content.html | 4 +++- layouts/partials/subtitle.html | 7 ------- layouts/partials/summary.html | 5 ----- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 layouts/partials/subtitle.html diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 786bd07..81d5a5a 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -8,7 +8,9 @@ {{ end }}{{ end }} {{ partial "breadcrumbs/index.html" . }}

{{ .Title }}

-
{{ partial "subtitle.html" . }}
+{{ if .Params.subtitle }} +
{{ markdownify .Params.subtitle }}
+{{ end }} {{ if ne .Kind "section" }}

{{ partial "content-details.html" . }}

{{ end }} diff --git a/layouts/partials/subtitle.html b/layouts/partials/subtitle.html deleted file mode 100644 index c25c8a7..0000000 --- a/layouts/partials/subtitle.html +++ /dev/null @@ -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 }} diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html index 5bdf919..c2db3ad 100644 --- a/layouts/partials/summary.html +++ b/layouts/partials/summary.html @@ -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 }} -