Giter Club home page Giter Club logo

Comments (3)

mattxwang avatar mattxwang commented on June 1, 2024

Hi @matyalatte, thanks for submitting an issue. To clarify what you're asking for by "disable href", are you asking to add an anchor tag (<a>) for the page but without an href? I'm not sure if this is a great idea - semantically, we shouldn't have anchor tags that don't link to a page. I may be misunderstanding what you're asking for - feel free to follow up!

In addition, would you still render a page for Group1 in your example? If not, this would break quite a bit of the breadcrumb-related functionality (since you would have a page parent without a generated page). If you do want to render a page, then this seems pretty similar to the existing functionality of using parent pages.

from just-the-docs.

matyalatte avatar matyalatte commented on June 1, 2024

Thank you for the reply.

are you asking to add an anchor tag () for the page but without an href?

I mean, to remove the <a> tag to make a shared header like what we can do with the collections.
(nav_disable_link might be a better name than is_group.)

would you still render a page for Group1 in your example?

Yeah, it's a page, to be exact. But it works like a gruop for users.
It would be perfect if it works in exactly the same way as the collenction method, but removing the <a> tags is enough for me.

I prefer consistency than perfectness.
I think front matters should be able to do both of parenting and grouping (or _config.yml should do both of them.)

But it's just a suggestion. I don't mind if you decline it.

from just-the-docs.

pdmosses avatar pdmosses commented on June 1, 2024

I think the suggested enhancement would be useful. Similar features were also discussed in #1345 and #1357.

It seems straightforward to implement the omission of the <a> tag from the navigation panel.

It would be perfect if it works in exactly the same way as the collection method

Collections have the following additional features:

  1. They can be non-foldable.
  2. Collection titles are styled differently from page titles.
  3. Any collection can be excluded from search.

Perhaps those features should also be specifiable in the front matter of the proposed grouping pages? Then the current (rather clumsy) way of specifying collections might become completely superfluous.

from just-the-docs.

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.