Skip to content

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

@CalMacCQ

Description

@CalMacCQ

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions