1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 09:22:55 +02:00

Try a new approach

This commit is contained in:
Julien Déramond
2023-03-21 18:56:55 +01:00
parent 622457b56d
commit d51d849da0
15 changed files with 1449 additions and 1893 deletions

View File

@@ -10,21 +10,14 @@ toc: true
## Glossary
{{< tables.inline >}}
{{ $file := split (readFile (path.Join "site/static/docs" .Site.Params.docs_version "assets/data/glossary.data")) "\n" }}
<table class="table">
<tbody>
{{- range $file }}
{{ $class := split . ":" }}
{{ range $.Site.Data.bootstrap.classes }}
<tr>
<td>
{{ if gt (len (string (index $class 1))) 1 }}
<a href="/docs/{{ $.Site.Params.docs_version }}/{{ (index $class 1) }}">{{ index $class 0 }}</a>
{{ else }}
<span>{{ index $class 0 }}</span>
{{ end }}
</td>
<td>{{ . }}</td>
</tr>
{{- end -}}
{{ end }}
</ul>
</tbody>
</table>
{{< /tables.inline >}}