Git Product home page Git Product logo

Comments (3)

squidfunk avatar squidfunk commented on June 12, 2024

Thanks for suggesting. I'm not sure I understand your change request. The page subtitle is solely used in navigation, but IIUC you want to provide an alternate, short title that is used instead of the blog post title in the table of contents?

Could you please provide a minimal reproduction that we can run?

from mkdocs-material.

tylernguyen avatar tylernguyen commented on June 12, 2024

9.5.23+insiders.4.53.8-subtitle-below-blog-post-title-in-toc.zip

Sorry if I wasn't being clear.

short title that is used instead of the blog post title in the table of contents?

It would NOT be used instead of the blog post title. But is shown below the title, just as how subtitles is currently implemented in the navigation bar.

Here is a mock-up:

Screenshot 2024-05-18 110129

from mkdocs-material.

squidfunk avatar squidfunk commented on June 12, 2024

Thanks for explaining! Subtitles are currently only implemented for navigation, not for the table of contents. It might be possible to make this work, but it's a lot of work, as the navigation and table of contents are implemented in two different partials, since they behave differently. For this reason, we're currently not considering implementing this functionality.

It is, however, achievable with customization. You'd need to adopt the subtitle logic to the toc-item partal. I hope it's understandable that we can't follow each and every feature request, which is why we make it possible to customize ☺️

from mkdocs-material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.