Skip to content

Commit fcb226c

Browse files
authored
Merge pull request #634 from BlackPythonDevs/add-_authors.json
add authors.json
2 parents c26aad7 + 4e99a65 commit fcb226c

File tree

2 files changed

+83
-48
lines changed

2 files changed

+83
-48
lines changed

_data/authors.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[
2+
{
3+
"name": "Jay Miller",
4+
"bio": "Jay is a Staff Developer Advocate based out of Atlanta, GA and the Founder and Executor of Black Python Devs. When away from the keyboard, Jay can often be found cheering on their favorite baseball team.",
5+
"bpd_role": "Founder/Global Executor",
6+
"social": {
7+
"website": "https://kjaymiller.com",
8+
"mastodon": "https://mastodon.social/@kjaymiller",
9+
"linkedin": "https://linkedin.com/linked/kjaymiller",
10+
"youtube": "https://youtube.com/kjaymiller"
11+
}
12+
},
13+
{
14+
"name": "Tobias Thomas (Toe•bias HT)",
15+
"bio": "Tobias is a former organizer of PyCon Uganda and was the primary organizer for the Black Python Devs ticket sponsorship of PyCon Uganda 2024.",
16+
"social": null,
17+
"bpd_role": "BPD Council Member | Community Member"
18+
},
19+
{
20+
"name": "Abigail Afi Gbadago",
21+
"bio": null,
22+
"social": null,
23+
"bpd_role": "Executor - Africa"
24+
},
25+
{
26+
"name": "Kafui Alordo",
27+
"bio": null,
28+
"social": null,
29+
"bpd_role": "BPD CouncilMember/Python Ho"
30+
}
31+
]

_layouts/post.html

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,52 @@
1-
---
2-
layout: default
3-
---
4-
{%- if page.featured_image -%}
5-
<div class="hero-banner">
6-
<img src="{{page.featured_image}}" class="featured-image">
7-
</div>
8-
{%- else -%}
9-
<div class="hero-banner">
10-
<img src="/assets/images/bpd_stacked.png" class="featured-image">
11-
</div>
12-
{%- endif -%}
13-
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
14-
15-
<header class="post-header">
16-
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
17-
<p class="post-meta">
18-
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
19-
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
20-
{{ page.date | date: date_format }}
21-
</time>
22-
{%- if page.modified_date -%}
23-
~
24-
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
25-
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
26-
{{ mdate | date: date_format }}
27-
</time>
28-
{%- endif -%}
29-
{%- if page.author -%}
30-
• {% for author in page.author %}
31-
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
32-
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
33-
{%- if forloop.last == false %}, {% endif -%}
34-
{% endfor %}
35-
{%- endif -%}
36-
</p>
37-
</header>
38-
39-
<div class="post-content e-content" itemprop="articleBody">
40-
{{ content }}
41-
</div>
42-
43-
{%- if site.disqus.shortname -%}
44-
{%- include disqus_comments.html -%}
45-
{%- endif -%}
46-
47-
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
48-
</article>
1+
---
2+
layout: default
3+
---
4+
<section>
5+
{%- if page.featured_image -%}
6+
<div class="hero-banner">
7+
<img src="{{page.featured_image}}" class="featured-image">
8+
</div>
9+
{%- else -%}
10+
<div class="hero-banner">
11+
<img src="/assets/images/bpd_stacked.png" class="featured-image">
12+
</div>
13+
{%- endif -%}
14+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
15+
<header class="post-header">
16+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
17+
<p class="post-meta">
18+
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
19+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
20+
{{ page.date | date: date_format }}
21+
</time>
22+
{%- if page.modified_date -%}
23+
~
24+
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
25+
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
26+
{{ mdate | date: date_format }}
27+
</time>
28+
{%- endif -%}
29+
{%- if page.author -%}
30+
• {% for author in page.author %}
31+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
32+
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
33+
{%- if forloop.last == false %}, {% endif -%}
34+
{% endfor %}
35+
{%- endif -%}
36+
</p>
37+
</header>
38+
<div class="post-content e-content" itemprop="articleBody">
39+
{{ content }}
40+
</div>
41+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
42+
</article>
43+
</section>
44+
45+
{% assign author = site.data.authors | where:"name", page.author | first %}
46+
<section>
47+
{% if author.bio %}
48+
<hr />
49+
<h3>About {{author.name}}</h3>
50+
<p>{{author.bio}}</p>
51+
</section>
52+
{% endif %}

0 commit comments

Comments
 (0)