Skip to content

Commit 4e99a65

Browse files
committed
adds bio to posts
1 parent ec8dfed commit 4e99a65

File tree

2 files changed

+69
-56
lines changed

2 files changed

+69
-56
lines changed

_data/authors.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
{
2-
"Jay Miller": {
3-
"bio": "Jay is a Staff Developer Advocate based out of Atlanta, GA and when away from the keyboard can often be found cheering on their favorite baseball team.",
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.",
45
"bpd_role": "Founder/Global Executor",
56
"social": {
67
"website": "https://kjaymiller.com",
@@ -9,14 +10,22 @@
910
"youtube": "https://youtube.com/kjaymiller"
1011
}
1112
},
12-
"Tobias Thomas (Toe•bias HT)": {
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",
1321
"bio": null,
1422
"social": null,
15-
"bpd_role": "Community Member"
23+
"bpd_role": "Executor - Africa"
1624
},
17-
"Abigail Afi Gbadago": {
25+
{
26+
"name": "Kafui Alordo",
1827
"bio": null,
1928
"social": null,
20-
"bpd_role": "Founder/Global Executor"
29+
"bpd_role": "BPD CouncilMember/Python Ho"
2130
}
22-
}
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)