File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 10
10
{{- $copyButton := default true site.Params.emgithub.copy_button }}
11
11
{{- $fileMeta := default true site.Params.emgithub.file_meta }}
12
12
{{- $jsDelivr := default false site.Params.emgithub.js_delivr }}
13
+ {{- $maxHeight := 0 }}
13
14
{{- if .IsNamedParams }}
14
15
{{- $owner = .Get "owner" }}
15
16
{{- $repo = .Get "repo" }}
27
28
{{- end }}
28
29
{{- if isset .Params "fileMeta" }}{{ $fileMeta = .Get "fileMeta" }}{{ end }}
29
30
{{- if isset .Params "jsDelivr" }}{{ $jsDelivr = .Get "jsDelivr" }}{{ end }}
31
+ {{- with .Get "maxHeight"}}{{ $maxHeight = . }}{{ end }}
30
32
{{- else }}
31
33
{{- $owner = .Get 0 }}
32
34
{{- $repo = .Get 1 }}
45
47
{{- if $jsDelivr }}
46
48
{{- $params = $params | append "fetchFromJsDelivr" "on" }}
47
49
{{- end }}
50
+ {{- with $maxHeight }}
51
+ {{- $params = $params | append "maxHeight" . }}
52
+ {{- end }}
48
53
{{- $endpoint := default "https://emgithub.com/embed-v2.js" site.Params.emgithub.endpoint }}
49
54
< script src ="{{ printf `%s?%s` $endpoint ($params | querify) }} "> </ script >
You can’t perform that action at this time.
0 commit comments