Skip to content

Commit cbbb369

Browse files
committed
Fix: Truthy .Value check
1 parent 75b847a commit cbbb369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/ghcode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ with try (resources.GetRemote $file) }}
55
{{ with .Err }}
66
{{ errorf "%s" . }}
7-
{{ else }}
7+
{{ else with .Value }}
88
{{ $lang := path.Ext $file | strings.TrimPrefix "." }}
99
<div class="code-block">
1010
{{- if and (ne $lang "") (ne $lang "none") -}}

0 commit comments

Comments
 (0)