Skip to content

Commit

Permalink
Update author
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislaineguerin committed Feb 27, 2024
1 parent 1a13c5c commit fd48663
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ sean_colsen:
role: Engineer at Mathesar
bio: >
"Sean Colsen is an engineer on the Mathesar Maintainers team, focusing mostly on front end work. As a self-taught coder, he's been building cool stuff with web tech since 2007."
image: /assets/sean.jpg
image: /assets/sean.jpg
4 changes: 2 additions & 2 deletions _includes/blog_card.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% assign size = include.size | default: 'regular' %} {% assign author =
site.data.authors[include.post.author_id] %}
site.data.authors[include.post.author] %}

<li
class="mb-4 {% if size == 'small' %}space-y-2 rounded p-4 lg:w-1/3{% else %}space-y-4 text-lg rounded p-8{% endif %} bg-white"
Expand All @@ -12,7 +12,7 @@
</h2>
<p class="text-gray-500 text-sm">
Posted on {{ include.post.date | date_to_string }} by
<a class="font-bold" href="/blog/authors/{{ include.post.author_id }}">
<a class="font-bold" href="/blog/authors/{{ include.post.author }}">
{{author.name }}
</a>
</p>
Expand Down
11 changes: 4 additions & 7 deletions _layouts/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,20 @@
{% assign author = site.data.authors[page.author] %}

<div class="post">

{% assign subheader = "Posts by " | append: author.name %}
{% include page-header.html header="Mathesar Blog" subheader=subheader alignment="center" %}
{% assign subheader = "Posts by " | append: author.name %} {% include
page-header.html header="Mathesar Blog" subheader=subheader alignment="center"
%}
<div class="pb-8">
<div
class="max-w-4xl mx-auto min-h-screen blog px-4 leading-snug space-y-8"
>
<ul class="space-y-8">
{% for post in site.posts %} {% if post.author_id == page.author %} {%
{% for post in site.posts %} {% if post.author == page.author %} {%
include blog_card.html post=post %} {% endif %} {% endfor %}
</ul>

<div class="w-40 border-t-2 border-stone-400 mx-auto"></div>
{% include author_details.html author=author %}


</div>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion _posts/2024-01-30-release-0-1-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: post
title: "Mathesar 0.1.4 Released"
tags: mathesar release announcement
date: 2024-01-30
author_id: sean_colsen
author: sean_colsen
description: "Mathesar 0.1.4 Released"
image: /assets/images/296093549-5a7916b7-4ab1-4b08-b7e3-a4823f3bcde5.png
---
Expand Down

0 comments on commit fd48663

Please sign in to comment.