mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit '047c4188dfc854f658d16f1e4a9501f9c97a31c7'
This commit is contained in:
6
docs/layouts/shortcodes/chroma-lexers.html
Normal file
6
docs/layouts/shortcodes/chroma-lexers.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<dl>
|
||||
{{ range .Site.Data.docs.chroma.lexers }}
|
||||
<dt>{{ .Name }}</dt>
|
||||
<dd>{{ delimit .Aliases ", " }}</dd>
|
||||
{{ end }}
|
||||
</dl>
|
@@ -5,6 +5,9 @@
|
||||
{{ $.Scratch.Set "codeLang" (index . 0 | strings.TrimPrefix ".") }}
|
||||
{{ end }}
|
||||
{{ with .Get "codeLang" }}{{ $.Scratch.Set "codeLang" . }}{{ end }}
|
||||
{{ if eq (.Scratch.Get "codeLang") "html"}}
|
||||
{{ $.Scratch.Set "codeLang" "go-html-template" }}
|
||||
{{ end }}
|
||||
<div class="code relative" id="{{ $file | urlize}}">
|
||||
{{- with $file -}}
|
||||
<div class="filename san-serif f6 dib lh-solid pl2 pv2">{{.}}</div>
|
||||
|
Reference in New Issue
Block a user