Code Monkey home page Code Monkey logo

Comments (1)

pdmosses avatar pdmosses commented on June 13, 2024 1

There are a few operations that are quite tedious and error prone:

Right.

Overall, the main issue I think is relying on Page Title for organizing content, while it could be much easier having a dedicated Page ID and linking pages by ID. That's also how most CMS work and it would bring some benefits:

Switching to use page IDs for linking pages also has some significant drawbacks:

  1. Requiring the use of page IDs would probably break almost all existing sites that use the theme.
  2. Migrating a large site to use manually-chosen page IDs would surely be extremely tedious.
  3. Ensuring site-wide uniqueness of page IDs could be problematic.

This theme generally tries to minimise breaking changes, so that existing sites can easily be upgraded to new releases and take advantage of the new features. Switching to require page IDs for linking pages would be a major breaking change.

Moreover, the source files of many websites may be organised systematically in much the same way as the navigation: the source files of pages with different parent pages are naturally stored in different directories. For such websites, the path to a source file is inherently a unique ID, and links between pages could be based directly on their paths – eliminating the need for parent, has_children, and grand_parent fields, as well as supporting unlimited navigation levels (see my comment in a discussion).

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.