Introduce Hugo shortcode to display authors table
All checks were successful
Builds / ExectOS WebSite (push) Successful in 11s
All checks were successful
Builds / ExectOS WebSite (push) Successful in 11s
This commit is contained in:
parent
b702ce1694
commit
8d084f456b
23
themes/exectos/layouts/shortcodes/authors.html
Normal file
23
themes/exectos/layouts/shortcodes/authors.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Nickname</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Role</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{ range .Site.Data.authors }}
|
||||||
|
<tr>
|
||||||
|
<td class="nick-cell">
|
||||||
|
<img src="https://www.gravatar.com/avatar/{{ .mail | md5 }}?s=50&d=identicon" class="avatar" />
|
||||||
|
<a href="https://git.codingworkshop.eu.org/xt-sys/exectos/commits/branch/master/search?q=author%3A{{ .nick }}">
|
||||||
|
<span>{{ .nick }}</span>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td>{{ .name }}</td>
|
||||||
|
<td>{{ .role }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
Loading…
x
Reference in New Issue
Block a user