How to make author info and blog categories appear in built html?

Open
#256 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
markdown, python

Research direction

Start by inspecting a generated post under the built _website directory and comparing its HTML with the Markdown front matter shown in the issue. Then review the ablog and myst_parser configuration, including the post patterns; done means author, date, and category information appears beneath each blog post.

Written by the indexing model from the issue text.

Description

Bug Help Wanted

Hi

I have now deployed my blog here (still a WIP).

Ideally I would like the author info, date and topic categoies to appear under each post. See this example from pydata-sphinx-theme.

Screenshot 2023-09-26 at 12 08 11

I'm not sure what I've missed. The categorised files are in the built _website directory but the info does not display with the posts.

I have the following front matter in my markdown source files

---
blogpost: true
date: Sep 8, 2023
author: Callum Macpherson
category: Release
---

# September Release Notes (pytket)

I have the following ablog configuation settings

# ----- ablog config settings -----
ablog_website = "_website"

ablog_builder = "dirhtml"

blog_path = "blog"
blog_baseurl = "https://tket.quantinuum.com/tket-blog/"
blog_title = "TKET Developer Blog"

blog_authors = {
    "Callum Macpherson": ("Callum Macpherson", None),
}

blog_post_pattern = ["posts/*.rst", "posts/*.md"]

blog_feed_archives = True

blog_post_pattern = "blog/*/*"
blog_feed_fulltext = True

# List of Sphinx extensions used
extensions = ["ablog", "myst_parser", "sphinx_copybutton"]

# ----- MyST parser config -----

myst_enable_extensions = ["dollarmath", "html_image"]

myst_update_mathjax = False

Any help would be really appreaciated. Thanks in advance.

Dominant language
Python
Stars
196
Forks
64
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sunpy/ablog

All issues in sunpy/ablog

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.