-
Notifications
You must be signed in to change notification settings - Fork 3
/
definition.html
29 lines (29 loc) · 1.41 KB
/
definition.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div id="accordion">
<div class="card">
<div class="card-header" id="{{definition.source}}-{{nr}}-header">
<h3 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" style="font-size:1.25em" data-target="#{{definition.source}}-{{nr}}" aria-expanded="false" aria-controls="collapseOne">
{% bibliography --query @*[key={{definition.source}}] -T jekyll-scholar/definition-card-header %}
</button>
</h3>
</div>
<div id="{{definition.source}}-{{nr}}" class="collapse" aria-labelledby="{{definition.source}}-{{nr}}-header" data-parent="#accordion">
<div class="card-body">
{{ definition.content | markdownify }}
</div>
<div class="card-body reference">
({% include citation-reference.html %})
</div>
<div class="card-body creditsbar">
<p>
<small>
{% assign responsible = site.contributors | where: 'username', definition.contributor | first %}
Contributed by <a href="{{ site.baseurl }}{{ responsible.url }}">{{ definition.contributor }}</a>.
{% assign editor = site.contributors | where: 'username', definition.last_updated_by | first %}
Last updated on {{ definition.last_modified_at | date: "%d %B %Y"}} by <a href="{{ site.baseurl }}{{ editor.url }}">{{ definition.last_updated_by }}</a>.
</small>
</p>
</div>
</div>
</div>
</div>