Skip to content

Missing post titles in Blog index when specified via metadata title #5951

@vedranmiletic

Description

@vedranmiletic

Context

MkDocs supports specifiying post title via h1 in content, e.g. # Lorem ipsum, or via title metadata key, e.g.

---
title: Lorem ipsum
date: 1970-01-01
---

Both will get rendered correctly on individual pages.

Bug description

On Blog index page with latest posts, the title specified via metadata key does not appear. It is, however, rendered correctly on the post itself, i.e. after clicking on Continue reading.

Related links

Reproduction

9.2.7-missing-titles-for-blog-posts.zip

Steps to reproduce

  1. mkdocs serve
  2. navigate to Blog index
  3. observe missing titles
  4. click Continue reading on any post
  5. observe that the title is there

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions