Skip to content

Commit 5c58442

Browse files
PolarBeanniksirbi
andauthored
Add blog post author bylines (#280)
* Add blog post author bylines * Revert "Add blog post author bylines" This reverts commit afda9b4. * use native ablog postcard to show blog authors --------- Co-authored-by: niksirbi <niko.sirbiladze@gmail.com>
1 parent 0d75614 commit 5c58442

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

docs/source/conf.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,24 @@
187187
}
188188
}
189189

190+
# Show ABlog's "postcard" (date, author, category, etc.) in the sidebar of blog
191+
# post pages, see https://ablog.readthedocs.io/en/latest/manual/templates-themes.html
192+
# Note: this replaces the default site nav sidebar on blog pages only.
190193
html_sidebars = {
191194
"blog/index": [
192-
# Ablog sidebars (https://ablog.readthedocs.io/en/stable/manual/ablog-configuration-options.html#sidebars)
193-
"ablog/recentposts.html"
194-
], # 'ablog/archives.html << we may want to use archives when we have more posts.
195-
"**": [],
195+
"ablog/authors.html",
196+
"ablog/archives.html",
197+
],
198+
"blog/**": [
199+
"ablog/postcard.html",
200+
"ablog/recentposts.html",
201+
],
196202
}
197203

204+
# The PyData theme bundles FontAwesome, so let ABlog render its postcard icons
205+
# (calendar, user, ...) instead of plain-text "Author:"/"Location:" labels.
206+
fontawesome_included = True
207+
198208

199209
redirects = {
200210
'open-software-week/index.html': '/open-software-summer-school/index.html',

0 commit comments

Comments
 (0)