Skip to content

Commit e82c8e8

Browse files
authored
Add support for listing Codeburg (#224)
1 parent c98dc66 commit e82c8e8

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Ideally, your `url` points to the page that displays the webring code, but this
3535

3636
* `accessibilityStatement`: The URL for your website's accessibility statement.
3737
* `github`: Your GitHub profile address (ex: `https://github.com/yourname`).
38+
* `codeberg`: Your Codeberg profile address (ex: `https://codeberg.org/yourname`).
3839
* `linkedin`: Your LinkedIn profile address (ex: `https://www.linkedin.com/in/yourname/`).
3940
* `bluesky`: Your Bluesky account (ex: `https://bsky.app/profile/@YourName.bsky.social`).
4041
* `mastodon`: Your Mastodon account (ex: `https://mastodon.social/@YourName`).

includes/icon-sprite.njk

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<svg aria-hidden="true" width="0" height="0" class="u-hidden">
2+
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="codeberg">
3+
<path d="M13 2C5.82017 2 0 7.848 0 15.0619C0 17.5158 0.687811 19.9202 1.98514 21.9994L12.8239 7.92016C12.9017 7.81846 13.0978 7.81846 13.1756 7.92016L24.0143 22C25.3116 19.9206 26 17.516 26 15.0619C26 7.848 20.1798 2 13 2Z" fill="currentColor"/>
4+
</symbol>
25
<symbol fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="copy">
36
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 1C8.46957 1 7.96086 1.21071 7.58579 1.58579C7.21071 1.96086 7 2.46957 7 3H6C5.20435 3 4.44129 3.31607 3.87868 3.87868C3.31607 4.44129 3 5.20435 3 6V20C3 20.7956 3.31607 21.5587 3.87868 22.1213C4.44129 22.6839 5.20435 23 6 23H18C18.7956 23 19.5587 22.6839 20.1213 22.1213C20.6839 21.5587 21 20.7956 21 20V6C21 5.20435 20.6839 4.44129 20.1213 3.87868C19.5587 3.31607 18.7956 3 18 3H17C17 2.46957 16.7893 1.96086 16.4142 1.58579C16.0391 1.21071 15.5304 1 15 1H9ZM17 5C17 5.53043 16.7893 6.03914 16.4142 6.41421C16.0391 6.78929 15.5304 7 15 7H9C8.46957 7 7.96086 6.78929 7.58579 6.41421C7.21071 6.03914 7 5.53043 7 5H6C5.73478 5 5.48043 5.10536 5.29289 5.29289C5.10536 5.48043 5 5.73478 5 6V20C5 20.2652 5.10536 20.5196 5.29289 20.7071C5.48043 20.8946 5.73478 21 6 21H18C18.2652 21 18.5196 20.8946 18.7071 20.7071C18.8946 20.5196 19 20.2652 19 20V6C19 5.73478 18.8946 5.48043 18.7071 5.29289C18.5196 5.10536 18.2652 5 18 5H17ZM9 4V5H15V3H9V4Z" fill="currentColor"></path>
47
</symbol>

includes/members.njk

+8
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
</a>
6363
</li>
6464
{% endif %}
65+
{% if member.codeberg %}
66+
<li>
67+
<a class="[ c-member-link ]" href="{{ member.codeberg }}">
68+
<svg class="[ u-scale-on-hover ] [ c-icon ]"><use xlink:href="#codeberg"></use></svg>
69+
<span class="[ u-hide-visually ]">Codeberg profile: {{ member.name }}</span>
70+
</a>
71+
</li>
72+
{% endif %}
6573
{% if member.bluesky %}
6674
<li>
6775
<a class="[ c-member-link ]" href="{{ member.bluesky }}">

0 commit comments

Comments
 (0)