Skip to content

Commit e690882

Browse files
authored
Add author information to blog posts (#22)
Closes: #21 Assisted-by: OpenCode (Claude Opus 4.5) Signed-off-by: John Eckersberg <jeckersb@redhat.com>
1 parent c1b0479 commit e690882

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

config.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,10 @@ favicon = "favicon.ico"
6161
meta_title = "Your OS, but Containers!"
6262
meta_description = "bootc builds operating systems using containerization principles"
6363
footer = ""
64+
65+
# Author definitions for blog posts
66+
# Use the key (e.g., "jeckersb") as the author value in blog post frontmatter
67+
[extra.authors]
68+
69+
[extra.authors.jeckersb]
70+
name = "John Eckersberg"

content/blog/2025-dec-15-blog-containers-pitfalls-of-incomplete-tar-archives.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
title = "Containers: pitfalls of incomplete tar archives"
33
date = 2025-12-15
44
slug = "2025-dec-15-blog-containers-pitfalls-of-incomplete-tar-archives"
5+
6+
[extra]
7+
author = "jeckersb"
58
+++
69

710
# Containers: pitfalls of incomplete tar archives

themes/juice/sass/juice.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ main {
158158
overflow: auto;
159159
}
160160

161+
.blog-meta {
162+
color: var(--secondary-text-color);
163+
font-size: 0.9rem;
164+
margin-bottom: 1.5rem;
165+
padding-bottom: 1rem;
166+
border-bottom: 1px solid #e0e0e0;
167+
}
168+
161169
footer {
162170
padding: 50px;
163171
display: flex;

themes/juice/templates/blog-page.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% import "_macros.html" as macros %}
2+
{% import "common.html" as common %}
23
{% extends "base.html" %}
34

45
{% block header %}
@@ -9,5 +10,11 @@
910

1011
{% block content %}
1112
<div class="heading-text">{{ page.description }}</div>
13+
<div class="blog-meta">
14+
<span class="blog-date">{{ page.date | date(format="%B %d, %Y") }}</span>
15+
{% if page.extra.author %}
16+
<span class="blog-author"> by {{ common::author(id=page.extra.author) }}</span>
17+
{% endif %}
18+
</div>
1219
{{ page.content | safe }}
1320
{% endblock content %}

0 commit comments

Comments
 (0)