Giter VIP home page Giter VIP logo

Comments (2)

mythmon avatar mythmon commented on August 19, 2024

Hmm. The way you talk about this idea makes me think you guys think about the categories different than what I had in mind. Let me try and explain what I have in my head.

Imagine my fictional website. I have a main page, and then a categories school and blog. This can be represented as a tree. (Nodes are slugs)

.
├── main
├── projects
│   ├── dotfiles
│   └── wok
└── school
    ├── cs362
    ├── cs381

So in content there would be 7 files. main, projects, and school would have no category or a category of "" (empty string). dotfiles and wok would have a category of projects. cs362 and cs381 would have a category of school.

Then for my purposes, dotfiles, wok, cs362, and cs381 would use a default template (so type: default or no type in the header), main would probably type: main and have its own special template. Projects and school would have type: index.

Then I would make an index template, that would first put the content of the page, and then list all the sub pages.

To address your two "big problems":

  • A user never has to set the slug to index. The user can set the type to index, but also to anything else. They have the option to handle sub pages in template for any name.
  • I don't think its hard to keep track of which content is the parent of what category. The names are the same. The content 'projects' is the parent of the category 'projects'.

from wok.

robatron avatar robatron commented on August 19, 2024

Ah OK, I was thinking about it differently. The way you describe it makes a lot more sense :)

from wok.

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.