mkdocs-material icon indicating copy to clipboard operation
mkdocs-material copied to clipboard

Blog plugin reference missing info on "title" metadata

Open jeffcogswell opened this issue 1 year ago • 1 comments

Description

The documentation for blog at /docs/plugins/blog.md appears to be missing the "title" metadata in the metadata section (or I'm just not finding it...), even though it seems to work fine:

---
title: Introducing Python Strings
date: 2024-11-04
categories:
  - Python
---

Related links

Proposed change

Use this property to specify a title to be used on listing pages such as category pages and the front blog page.

If you don't use this, the title will be taken automatically from the first element in the post, provided it's an H1. However, if the first element is not an H1, the title will be taken automatically from the filename. You can override this behavior by specifying the title in the metadata:

---
title: Introducing Python Strings
---

# Post title
...

Before submitting

jeffcogswell avatar Jan 14 '25 03:01 jeffcogswell

Thanks for reporting. The title metadata is not exclusive to blog posts, but can be used on all pages. This is also why it is documented under the general reference section, because we try not to duplicate things. However, we're planning a restructure of our documentation in the near future, so we'll take this back with us to improve discoverability. CC @alexvoss

squidfunk avatar Jan 14 '25 03:01 squidfunk