Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions content/people/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "People of Linebender"
description = "Meet the members of Linebender who have chosen to share a profile."
sort_by = "slug"
template = "people.html"
page_template = "person.html"
+++

Meet the members of Linebender who have chosen to share a profile. You can also browse the [Linebender GitHub directory](https://github.com/orgs/linebender/people).

[Learn how to add your profile](@/wiki/access.md#optional-members-add-your-profile).
9 changes: 9 additions & 0 deletions content/people/nuzzles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
+++
title = "Spencer Imbleau"
description = "Software engineer working on computer graphics and AI systems."

[extra]
github = "nuzzles"
zulip = 414173
homepage = "https://spencer.imbleau.com"
+++
36 changes: 36 additions & 0 deletions content/wiki/access.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
+++
title = "Linebender access"
description = "How to become a Linebender contributor or organization member and add a profile to People of Linebender."
+++

## Access levels

**Contributor.** Anyone can submit a pull request to a Linebender project. Once you’ve submitted one, you’re a contributor.

**Member.** You become a member when you accept an invitation from an owner of the [Linebender GitHub organization](https://github.com/linebender). This usually follows a conversation on [Linebender Zulip](https://xi.zulipchat.com/). Members can submit a pull request to list themselves in [People of Linebender](@/people/_index.md).

**Owner.** Owners invite members to the Linebender GitHub organization, approve new committers, and manage organization settings. The [contributor guidelines](@/contributor-guidelines.md#code-reviews) list the organization owners.

## Optional (Members) - Add your profile

1. In the [website repository](https://github.com/linebender/linebender.github.io), create `content/people/<your-github-username>.md` using your lowercase GitHub username.
2. Copy the template below into the file. Enter your lowercase GitHub username and your numeric Linebender Zulip user ID. You can find the ID after `#user/` in your Zulip profile link. Uncomment any optional fields you want to share. If you omit your display name, the directory shows your GitHub username.
3. Open a pull request with that file. Once it’s merged, your public profile appears at `/people/<your-github-username>/` and search engines can index it.

```toml
+++
# title = "Your display name"
# description = "A short description of your work or interests."

[extra]
github = "your-github-username"
zulip = 12345
# homepage = "https://example.org/"
# x = "your_handle"
# mastodon = "https://social.example/@your_handle"
+++
```

Use an HTTPS URL for your homepage or Mastodon profile and omit the leading `@` from your X handle. Leave the file body empty.

To update or remove your profile, submit a pull request editing or deleting the file. Earlier versions remain in the public Git history.
137 changes: 137 additions & 0 deletions sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ ol {
margin-left: 30px;
}

.page-content hr + ul {
margin-top: 15px;
}

li>ul,
li>ol {
margin-bottom: 0;
Expand Down Expand Up @@ -207,10 +211,143 @@ blockquote>:last-child {
vertical-align: text-top;
}

.profile-heading {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;

img {
margin: 0;
flex-shrink: 0;
border-radius: 50%;
}

h1 {
margin: 0;
overflow-wrap: anywhere;
}
}

.zulip-contact {
display: inline-block;
padding: 0.5em 1em;
border: 1px solid currentColor;
border-radius: 4px;
font-weight: 600;

&:focus-visible {
outline: 2px solid currentColor;
outline-offset: 3px;
}
}

.profile-links {
list-style: none;
margin-left: 0;
overflow-wrap: anywhere;
}

.profile-links .svg-icon {
fill: currentColor;
}

.profile-links li+li,
.social-media-list li+li {
padding-top: 5px;
}

.people-intro {
max-width: 62ch;
}

.people-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
gap: 1rem;
margin: 1.5rem 0 0;
list-style: none;
}

.people-card {
display: flex;
flex-direction: column;
min-width: 0;
background: var(--table-row-alt-color);
border: 1px solid var(--border-color);
border-radius: 0.625rem;
overflow-wrap: anywhere;
}

.people-card-heading {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.5rem;
padding-left: 1rem;

> div {
min-width: 0;
padding-top: 0.75rem;
}

h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
line-height: 1.25;
}

img {
flex: none;
margin: 0;
border-radius: 0 0.5625rem 0 0.5rem;
background: var(--bg-color);
object-fit: cover;
}
}

.people-card-description {
margin: 0.5rem 1rem 0.75rem;
}

.people-card-profile,
.people-card-profile:visited {
align-self: flex-end;
margin: auto 1rem 0.75rem;
color: var(--anchor-visited-color);
font-size: 0.875rem;
font-weight: 600;
}

.profile-links--compact {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin: 0;

li+li {
padding-top: 0;
}

a {
display: grid;
place-items: center;
width: 1.5rem;
height: 1.5rem;
color: var(--fg-color);
border-radius: 0.25rem;

&:hover {
background: var(--border-color);
}
}

.svg-icon {
padding-right: 0;
}
}

table {
margin-bottom: 30px;
width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions static/minima-social-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% set title = page.title | default(value=section.title | default(value="")) %}
{% if not title and page.slug %}{% set title = page.slug %}{% endif %}
{% set description = page.description | default(value=section.description | default(value=title)) %}
<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>{% if page.title %}{{page.title}} - {{config.title}}{% else %}| {{config.description}}{% endif %}</title>
<title>{% if title %}{{title}} - {{config.title}}{% else %}| {{config.description}}{% endif %}</title>
<meta name="generator" content="Zola v0.17.2">
<meta property="og:title" content="{% if page.title %}{{page.title}}{% else %}{{config.title}}{% endif %}">
<meta property="og:title" content="{% if title %}{{title}}{% else %}{{config.title}}{% endif %}">
<meta property="og:locale" content="en_US">
<meta name="description" content="{% if page.title %}{{page.title}}{% else %}{{config.description}}{% endif %}">
<meta name="description" content="{% if description %}{{description}}{% else %}{{config.description}}{% endif %}">
<meta property="og:description"
content="{% if page.title %}{{page.title}}{% else %}{{config.description}}{% endif %}">
content="{% if description %}{{description}}{% else %}{{config.description}}{% endif %}">
<meta property="og:site_name" content="{{config.title}}">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary">
<meta property="twitter:title" content="{% if page.title %}{{page.title}}{% else %}{{config.title}}{% endif %}">
<meta property="twitter:title" content="{% if title %}{{title}}{% else %}{{config.title}}{% endif %}">
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/main.css">
{% if config.generate_feeds %}
Expand Down Expand Up @@ -55,6 +58,7 @@
{% block navlinks %}
<a class="page-link" href="/about">About</a>
<a class="page-link" href="/blog">Blog</a>
<a class="page-link" href="/people/">People</a>
<a class="page-link" href="/wiki">Wiki</a>
{% endblock navlinks %}
</div>
Expand Down
27 changes: 27 additions & 0 deletions templates/people.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends "base.html" %}
{% import "person_macros.html" as person_macros %}

{% block content %}
<h1>{{ section.title }}</h1>
<div class="people-intro">
{{ section.content | safe }}
</div>
{% if section.pages %}
<ul class="people-grid" role="list">
{% for person in section.pages %}
{% set name = person.title | default(value=person.slug) %}
<li class="people-card">
<header class="people-card-heading">
<div>
<h2>{{ name }}</h2>
{{ person_macros::links(person=person, compact=true) }}
</div>
{{ person_macros::avatar(username=person.slug, size=64) }}
</header>
{% if person.description %}<p class="people-card-description">{{ person.description }}</p>{% endif %}
<a class="people-card-profile" href="{{ person.permalink | safe }}" aria-label="View profile for {{ name }}">View profile <span aria-hidden="true">→</span></a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock content %}
32 changes: 32 additions & 0 deletions templates/person.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{% extends "base.html" %}
{% import "person_macros.html" as person_macros %}

{% block content %}
{% if page.content | trim %}
{{ throw(message=page.path ~ ": put profile information in the front matter and leave the body empty") }}
{% endif %}
{% set links = page.extra %}
{% if not links.github or links.github != page.slug %}
{{ throw(message=page.path ~ ": set extra.github to the GitHub username matching your filename") }}
{% endif %}
{% if not links.zulip or not links.zulip is number or links.zulip < 1 or links.zulip != links.zulip | round %}
{{ throw(message=page.path ~ ": set extra.zulip to your numeric Linebender Zulip user ID") }}
{% endif %}
{% for field in ["homepage", "mastodon"] %}
{% if links[field] and not links[field] is starting_with("https://") %}
{{ throw(message=page.path ~ ": use an HTTPS URL for " ~ field) }}
{% endif %}
{% endfor %}
{% if links.x and not links.x is matching("^[A-Za-z0-9_]{1,15}$") %}
{{ throw(message=page.path ~ ": enter your X handle without the @") }}
{% endif %}

<p><a href="{{ get_url(path='@/people/_index.md') | safe }}"><span aria-hidden="true">←</span> People of Linebender</a></p>
<header class="profile-heading">
{{ person_macros::avatar(username=links.github, size=80) }}
<h1>{{ page.title | default(value=page.slug) }}</h1>
</header>
{% if page.description %}<p>{{ page.description }}</p>{% endif %}
{{ person_macros::links(person=page) }}
<a class="zulip-contact" href="https://xi.zulipchat.com/#narrow/dm/{{ links.zulip }}">Contact me on Zulip</a>
{% endblock content %}
30 changes: 30 additions & 0 deletions templates/person_macros.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{% macro avatar(username, size) %}
<img src="https://github.com/{{ username }}.png?size=160" width="{{ size }}" height="{{ size }}" alt="" decoding="async">
{% endmacro avatar %}

{% macro link(icon, label, url, text, compact) %}
{% set accessible_label = label %}
{% if icon == "zulip" %}{% set accessible_label = "Zulip" %}{% endif %}
<li>
{% if compact %}
<a href="{{ url }}" rel="me" aria-label="{{ accessible_label }}" title="{{ accessible_label }}">
<svg class="svg-icon" aria-hidden="true" focusable="false"><use href="/minima-social-icons.svg#{{ icon }}"></use></svg>
</a>
{% else %}
<svg class="svg-icon" aria-hidden="true" focusable="false"><use href="/minima-social-icons.svg#{{ icon }}"></use></svg>
{{ label }}: <a href="{{ url }}" rel="me">{{ text }}</a>
{% endif %}
</li>
{% endmacro link %}

{% macro links(person, compact=false) %}
{% set links = person.extra %}
{% set github_url = "https://github.com/" ~ links.github %}
<ul class="profile-links{% if compact %} profile-links--compact{% endif %}" role="list">
{{ self::link(icon="zulip", label="Zulip User ID", url="https://xi.zulipchat.com/#user/" ~ links.zulip, text=links.zulip, compact=compact) }}
{{ self::link(icon="github", label="GitHub", url=github_url, text="@" ~ person.slug, compact=compact) }}
{% if links.homepage %}{{ self::link(icon="homepage", label="Homepage", url=links.homepage, text=links.homepage, compact=compact) }}{% endif %}
{% if links.x %}{{ self::link(icon="x", label="X", url="https://x.com/" ~ links.x, text="@" ~ links.x, compact=compact) }}{% endif %}
{% if links.mastodon %}{{ self::link(icon="mastodon", label="Mastodon", url=links.mastodon, text=links.mastodon, compact=compact) }}{% endif %}
</ul>
{% endmacro links %}
2 changes: 1 addition & 1 deletion templates/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>{{ section.title }}</h1>
{% endfor %}

{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
<li><a href="{{ page.permalink | safe }}">{{ page.title | default(value=page.slug) }}</a></li>
{% endfor %}
</ul>
{% endblock content %}
Loading