Compare commits
1 Commits
0cdd2fbf64
...
98a9d78273
| Author | SHA1 | Date | |
|---|---|---|---|
| 98a9d78273 |
@@ -6,4 +6,7 @@
|
|||||||
{{- if eq (lower .language) "agda" -}}
|
{{- if eq (lower .language) "agda" -}}
|
||||||
{{- $scratch.Add "highlightGroupAttrs" " data-agda-block" -}}
|
{{- $scratch.Add "highlightGroupAttrs" " data-agda-block" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- with .offset -}}
|
||||||
|
{{- $scratch.Add "highlightGroupAttrs" (printf " data-source-offset=\"%v\"" .) -}}
|
||||||
|
{{- end -}}
|
||||||
{{ partial "group.html" (dict "url" .url "path" .path "comment" .comment "content" (highlight .code .language .opts) "attrs" ($scratch.Get "highlightGroupAttrs")) }}
|
{{ partial "group.html" (dict "url" .url "path" .path "comment" .comment "content" (highlight .code .language .opts) "attrs" ($scratch.Get "highlightGroupAttrs")) }}
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
"firstLine" (int (.Get 2))
|
"firstLine" (int (.Get 2))
|
||||||
"lastLine" (int (.Get 3))
|
"lastLine" (int (.Get 3))
|
||||||
"language" (.Get 0)
|
"language" (.Get 0)
|
||||||
|
"offset" ($scratch.Get "prefixLength")
|
||||||
"opts" (printf "linenos=table,linenostart=%d%s" (.Get 2) ($scratch.Get "opts"))
|
"opts" (printf "linenos=table,linenostart=%d%s" (.Get 2) ($scratch.Get "opts"))
|
||||||
-}}
|
-}}
|
||||||
{{- partial "highlightgroup.html" $groupconfig -}}
|
{{- partial "highlightgroup.html" $groupconfig -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user