We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75b847a commit cbbb369Copy full SHA for cbbb369
layouts/shortcodes/ghcode.html
@@ -4,7 +4,7 @@
4
{{ with try (resources.GetRemote $file) }}
5
{{ with .Err }}
6
{{ errorf "%s" . }}
7
- {{ else }}
+ {{ else with .Value }}
8
{{ $lang := path.Ext $file | strings.TrimPrefix "." }}
9
<div class="code-block">
10
{{- if and (ne $lang "") (ne $lang "none") -}}
0 commit comments