Skip to content

Commit 18e44b7

Browse files
committed
speakers and social media
1 parent 23ebd90 commit 18e44b7

File tree

16 files changed

+172
-2
lines changed

16 files changed

+172
-2
lines changed

_data/social_links.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
website:
2+
label: Website
3+
icon: link.svg
4+
linkedin:
5+
label: LinkedIn
6+
icon: linkedin.svg
7+
instagram:
8+
label: Instagram
9+
icon: instagram.svg
10+
mastodon:
11+
label: Mastodon
12+
icon: 🐘
13+
x:
14+
label: X
15+
icon: x.svg
16+
bluesky:
17+
label: Bluesky
18+
icon: bluesky.svg

_includes/social-links.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{%- comment -%}
2+
Usage:
3+
{% include social-links.html social=page.social %}
4+
5+
Description:
6+
Renders a "Social Links" section using key–value pairs passed to the `social` parameter.
7+
Each key is a platform (e.g. "twitter"), and each value is the URL.
8+
9+
Social metadata (label, icon, emoji) is pulled from `_data/social_links.yml`.
10+
11+
Example:
12+
In front matter of a page:
13+
social:
14+
twitter: "https://twitter.com/example"
15+
github: "https://github.com/example"
16+
17+
Corresponding include:
18+
{% include social-links.html social=page.social %}
19+
20+
Requirements:
21+
- `_data/social_links.yml`: defines per-platform metadata:
22+
twitter:
23+
label: "Twitter"
24+
icon: "twitter.svg" # optional alternative: emoji: "🐦"
25+
- Icons must exist in `/_includes/social/` if using `icon`.
26+
27+
Notes:
28+
- Only renders entries with matching data in `social_links.yml`.
29+
- Fallbacks: label → platform name; icon → emoji
30+
{%- endcomment -%}
31+
32+
{% if include.social %}
33+
34+
<div class="social-button-group">
35+
{% for key in include.social %}
36+
{% assign platform = key[0] %}
37+
{% assign url = key[1] %}
38+
{% assign social_data = site.data.social_links[platform] %}
39+
{% assign label = social_data.label | default: platform %}
40+
41+
{% if social_data %}
42+
<a href="{{ url }}" target="_blank" rel="noopener" class="social-button">
43+
{% if social_data.icon %}
44+
<span class="iconstyle">{% include social/{{ social_data.icon }} %}</span>
45+
{% elsif social_data.emoji %}
46+
<span class="iconstyle">{{ social_data.emoji }}</span>
47+
{% endif %}
48+
<span>{{ label }}</span>
49+
</a>
50+
{% endif %}
51+
{% endfor %}
52+
</div>
53+
{% endif %}

_includes/social/bluesky.svg

Lines changed: 1 addition & 0 deletions
Loading

_includes/social/instagram.svg

Lines changed: 1 addition & 0 deletions
Loading

_includes/social/link.svg

Lines changed: 1 addition & 0 deletions
Loading

_includes/social/linkedin.svg

Lines changed: 1 addition & 0 deletions
Loading

_includes/social/x.svg

Lines changed: 1 addition & 0 deletions
Loading

_layouts/speaker.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ <h1>{{ page.title }}</h1>
1212
<p class="speaker-role">{{ page.role }}</p>
1313
{% endif %}
1414
</hgroup>
15+
1516
{{ content }}
17+
18+
{% if page.social %}
19+
{% include social-links.html social=page.social %}
20+
{% endif %}
1621
</div>
1722
</section>
1823
</article>

_speakers/alan-brouilette.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ lastname: Brouilette
44
role: 18F Chief of Staff (Emeritus)
55
image: /assets/images/speakers/brouilette.jpg
66
published: true
7+
social:
8+
linkedin: https://www.linkedin.com/in/alanbrouilette/
79
---
810

911
18F Chief of Staff (Emeritus) Alan Brouilette spent nine and a half very good years as a federal employee of the United States despite his distrust of government and dislike of technology. After a sixteen year career working for ESPN, ABC News, Ameriprise Financial, Gogo Inflight Internet, and himself, Alan found in 18F the opportunity to build a humane workplace. Alan is a native of Chicago, a town that embraces soft power and understands the value of both friendship and Family to professional success. _(Capisce?)_ Alan is currently working with state and local governments to help them understand the transformative power of culture and community.

_speakers/bianca-wylie.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Bianca Wylie
3+
lastname: Wylie
4+
role: writer, public interest tech advocate, and co-founder of Tech Reset Canada
5+
image: /assets/images/speakers/wylie.jpg
6+
published: true
7+
social:
8+
linkedin: https://www.linkedin.com/in/biancawylie/
9+
bluesky: https://bsky.app/profile/biancawylie.com
10+
---
11+
12+
Bianca is a writer, a public interest tech advocate, and co-founder of Tech Reset Canada, where she works on resetting the innovation agenda.

0 commit comments

Comments
 (0)