Skip to content

Commit

Permalink
Merge pull request #634 from BlackPythonDevs/add-_authors.json
Browse files Browse the repository at this point in the history
add authors.json
  • Loading branch information
TimOsahenru authored Jan 21, 2025
2 parents c26aad7 + 4e99a65 commit fcb226c
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 48 deletions.
31 changes: 31 additions & 0 deletions _data/authors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
"name": "Jay Miller",
"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.",
"bpd_role": "Founder/Global Executor",
"social": {
"website": "https://kjaymiller.com",
"mastodon": "https://mastodon.social/@kjaymiller",
"linkedin": "https://linkedin.com/linked/kjaymiller",
"youtube": "https://youtube.com/kjaymiller"
}
},
{
"name": "Tobias Thomas (Toe•bias HT)",
"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.",
"social": null,
"bpd_role": "BPD Council Member | Community Member"
},
{
"name": "Abigail Afi Gbadago",
"bio": null,
"social": null,
"bpd_role": "Executor - Africa"
},
{
"name": "Kafui Alordo",
"bio": null,
"social": null,
"bpd_role": "BPD CouncilMember/Python Ho"
}
]
100 changes: 52 additions & 48 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,52 @@
---
layout: default
---
{%- if page.featured_image -%}
<div class="hero-banner">
<img src="{{page.featured_image}}" class="featured-image">
</div>
{%- else -%}
<div class="hero-banner">
<img src="/assets/images/bpd_stacked.png" class="featured-image">
</div>
{%- endif -%}
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}
</p>
</header>

<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>

{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}

<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
---
layout: default
---
<section>
{%- if page.featured_image -%}
<div class="hero-banner">
<img src="{{page.featured_image}}" class="featured-image">
</div>
{%- else -%}
<div class="hero-banner">
<img src="/assets/images/bpd_stacked.png" class="featured-image">
</div>
{%- endif -%}
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}
</p>
</header>
<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
</section>

{% assign author = site.data.authors | where:"name", page.author | first %}
<section>
{% if author.bio %}
<hr />
<h3>About {{author.name}}</h3>
<p>{{author.bio}}</p>
</section>
{% endif %}

0 comments on commit fcb226c

Please sign in to comment.