dashboard
repositories
filestore
activity
search
login
external-software
/
github_gohugo_theme_compose
mirror of
https://github.com/onweru/compose.git
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
update template
weru
09.47.2023
5ebe0b0b8d168ce7987d50aced6b23c232bede78
[external-software/github_gohugo_theme_compose.git]
/
layouts
/
partials
/
functions
/
getCodeConfig.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{- $s := site.Params }}
{{- $p := .Params }}
{{- $maxCodeLines := default 100 $s.codeMaxLines }}
{{- with $p.codeMaxLines }}
{{- $maxCodeLines = . }}
{{- end }}
{{- $showLineNumbers := default false $s.showLineNumbers }}
{{ with $p.showLineNumbers }}
{{- $showLineNumbers = . }}
{{ else }}
{{ if eq $p.showLineNumbers false }}
{{- $showLineNumbers = false }}
{{ end }}
{{- end }}
{{- return (jsonify (dict "show" $showLineNumbers "maximum" $maxCodeLines)) }}