diff --git a/layouts/shortcodes/ghcode.html b/layouts/shortcodes/ghcode.html
index 8bac9d0..b3ff23b 100644
--- a/layouts/shortcodes/ghcode.html
+++ b/layouts/shortcodes/ghcode.html
@@ -4,12 +4,12 @@
{{ with try (resources.GetRemote $file) }}
{{ with .Err }}
{{ errorf "%s" . }}
- {{ else }}
+ {{ else with .Value }}
{{ $lang := path.Ext $file | strings.TrimPrefix "." }}
- {{ highlight .Value $lang $params }}
+ {{ highlight .Content $lang $params }}
-
+
{{- if and (ne $lang "") (ne $lang "none") -}}
{{ $lang }}
@@ -17,11 +17,11 @@
- {{ highlight .Value $lang $params }}
+ {{ highlight .Content $lang $params }}
{{ end }}
{{ else }}
{{ errorf "Unable to load github content from %s from %q" $file .Position}}
-{{ end }}
\ No newline at end of file
+{{ end }}