Giter VIP home page Giter VIP logo

Comments (4)

Keats avatar Keats commented on June 8, 2024

I just realised:

# The following files
/content/posts/2013-06-02_my-vacation/index.md
/content/posts/2013-06-02_my-vacation/comments/_index.md

is not meant to work, you cannot nest sections under a page.

from zola.

asimpletune avatar asimpletune commented on June 8, 2024

I see, I think that mostly makes sense, but consider the following edge case.

You have a post about your vacation, which has a commenting section. Let’s assume the comments are pages too.

Without allowing sections nested under pages there’s no good way to paginate the comment section.

Also, keep in mind that the above directory structure still works, as in it compiles, but it works in a way that defies how people expect it to behave. Once the date from a directory name is removed, it seems safe to assume that further nested parts of the path will descend as so.

So, in conclusion, I get what you’re saying and I’ve never in the past needed sections nested within pages, but now that I’ve built a commenting system I do. (See: https://spenc.es/writing/email-as-a-commenting-system/#comments)

PS: Also individual comments as pages would allow taxonomies based on the author of the comment, in addition to pagination.

from zola.

asimpletune avatar asimpletune commented on June 8, 2024

I also forgot to mention that I submitted a PR for this already, but that was when we thought it was a bug. #2369

If you allow it then, I assume as a feature there might be more requirements and tests added. I’m happy to do the work but I’m missing all the context @Keats has.

from zola.

Keats avatar Keats commented on June 8, 2024

If we allow something like that, it should be a more general change, something like https://zola.discourse.group/t/proposal-deprecate-sections/1968

from zola.

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.