Docs: Improve styling of GitHub contributors listing

This commit is contained in:
jeremy@jermolene.com
2022-07-14 13:49:23 +01:00
parent c270e3cd6b
commit f957874d18
6 changed files with 137 additions and 119 deletions

View File

@@ -1,5 +1,5 @@
created: 20150117152607000
modified: 20211230150413997
modified: 20220714133424023
tags: $:/tags/Macro
title: $:/editions/tw5.com/doc-macros
type: text/vnd.tiddlywiki
@@ -171,4 +171,14 @@ $credit$
</div>
\end
\define .contributors(usernames)
<ol class="doc-github-contributors">
<$list filter="[enlist<__usernames__>sort[]]" variable="username">
<li>
<a href={{{ [[https://github.com/]addsuffix<username>] }}} class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"><img src={{{ [[https://github.com/]addsuffix<username>addsuffix[.png?size=24]] }}} width="24" height="24"/><span class="doc-github-contributor-username"> @<$text text=<<username>>/></span></a>
</li>
</$list>
</ol>
\end
<pre><$view field="text"/></pre>