iseal-core/site/layouts/_default/term.html
Alan Orth 286896486e
Add initial version of schema specification site
After running the util/generate_docs.py script to parse and extract
the metadata term specifications and their controlled vocabularies,
we use Hugo to generate the HTML site. The HTML site uses Bootstrap
with several ISEAL brand colors gleaned from the corporate website.
2021-11-01 08:27:41 +02:00

54 lines
1.8 KiB
HTML

<p class="invisible"><a id="{{ .Params.slug }}"></a></p>
<table class="table table-sm table-bordered">
<thead>
<tr class="table-secondary">
<th colspan="2">
{{- .Params.title | markdownify -}}
{{- with .Params.required -}}
<div class="badge-required">
<span class="badge bg-primary">Required</span>
</div>
{{- end -}}
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="col-2 field-name">Label</td>
<td>{{ .Name | markdownify }}</td>
</tr>
{{ with .Params.description }}
<tr>
<td class="col-2 field-name">Definition</td>
<td>{{ . | markdownify }}</td>
</tr>
{{ end }}
{{ with .Params.comment }}
<tr>
<td class="col-2 field-name">Comment</td>
<td>{{ . | markdownify }}</td>
</tr>
{{ end }}
{{ with .Params.field }}
<tr>
<td class="col-2 field-name">Suggested field</td>
<td>{{ . }}</td>
</tr>
{{ end }}
{{ with .Params.policy }}
<tr>
<td class="col-2 field-name">Policy</td>
<td>{{ . }}</td>
</tr>
{{ end }}
{{ if .Params.vocabulary }}
{{ with .Resources.GetMatch .Params.vocabulary }}
<tr>
<td class="col-2 field-name">Vocabulary</td>
<td><a href="{{ .RelPermalink }}">{{ .Name }}</a></td>
</tr>
{{ end }}
{{ end }}
</tbody>
</table>