mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -1,7 +1,28 @@
|
||||
<dl>
|
||||
{{ range .Site.Data.docs.chroma.lexers }}
|
||||
<dt>{{ .Name }}</dt>
|
||||
<dd>{{ with .Aliases }}{{ delimit . ", " }}{{ end }}</dd>
|
||||
{{ end }}
|
||||
</dl>
|
||||
|
||||
{{/* prettier-ignore-start */ -}}
|
||||
{{- /*
|
||||
Renders an HTML template of Chroma lexers and their aliases.
|
||||
|
||||
@example {{< chroma-lexers >}}
|
||||
*/ -}}
|
||||
{{/* prettier-ignore-end */ -}}
|
||||
<div class="overflow-x-auto">
|
||||
<table>
|
||||
<thead>
|
||||
<th>Language</th>
|
||||
<th>Identifiers</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{- range site.Data.docs.chroma.lexers }}
|
||||
<tr>
|
||||
<td>{{ .Name }}</td>
|
||||
<td>
|
||||
{{- range $k, $_ := .Aliases }}
|
||||
{{- if $k }},{{ end }}
|
||||
<code>{{ . }}</code>
|
||||
{{- end }}
|
||||
</td>
|
||||
</tr>
|
||||
{{- end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user