diff --git a/layouts/shortcodes/github.html b/layouts/shortcodes/github.html index 8cd33c01..05be3d4e 100644 --- a/layouts/shortcodes/github.html +++ b/layouts/shortcodes/github.html @@ -4,9 +4,8 @@ {{- $githubThumbnailURL := print "https://opengraph.githubassets.com/0/" (.Get "repo") -}} {{- $showThumbnail := .Get "showThumbnail" | default true -}} - -
- {{- with $githubData -}} +{{- with $githubData -}} +
@@ -71,7 +70,7 @@ data-repo-url="{{ $githubURL }}" data-repo-id="{{ $id }}"> - {{- else -}} - {{ warnf "github shortcode: unable to fetch %q: %s" $githubURL .Position }} - {{- end -}} -
+
+{{- else -}} + {{ warnf "github shortcode: unable to fetch %q: %s" $githubURL .Position }} +{{- end -}}