mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
Merge commit 'b3d87dd0fd746f07f9afa6e6a2969aea41da6a38'
This commit is contained in:
28
docs/layouts/_shortcodes/chroma-lexers.html
Normal file
28
docs/layouts/_shortcodes/chroma-lexers.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{/* 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