File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
{{ with try (resources.GetRemote $file) }}
5
5
{{ with .Err }}
6
6
{{ errorf "%s" . }}
7
- {{ else }}
7
+ {{ else with .Value }}
8
8
{{ $lang := path.Ext $file | strings.TrimPrefix "." }}
9
9
< div id ="code-block-v1 " data-mf ="false ">
10
- {{ highlight .Value $lang $params }}
10
+ {{ highlight .Content $lang $params }}
11
11
</ div >
12
-
12
+
13
13
< div class ="code-block " data-mf ="true " style ="display: none; ">
14
14
{{- if and (ne $lang "") (ne $lang "none") -}}
15
15
< span class ="code-type chroma "> {{ $lang }}</ span >
16
16
{{- end -}}
17
17
< div class ="code-container chroma ">
18
18
< button onclick ="copyToClipBoard(this, {{ $codeBlockId }}) " class ="code-copy-button multi-line " type ="button "> Copy</ button >
19
19
< div class ="highlight-v2 " id ="{{ $codeBlockId }} ">
20
- {{ highlight .Value $lang $params }}
20
+ {{ highlight .Content $lang $params }}
21
21
</ div >
22
22
</ div >
23
23
</ div >
24
24
{{ end }}
25
25
{{ else }}
26
26
{{ errorf "Unable to load github content from %s from %q" $file .Position}}
27
- {{ end }}
27
+ {{ end }}
You can’t perform that action at this time.
0 commit comments