Comments (4)
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.
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.
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.
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)
- [Feature Request] Include page date in the search index HOT 1
- Theme translations HOT 3
- Generated Atom/RSS feed is badly generated HOT 10
- Non-default language search index doesn't respect `[search]` config HOT 1
- Feature Request: Auto redirect to default_language HOT 3
- zola check: checking vs checked link number does not match HOT 1
- Anyone compiling on Android? HOT 1
- How to use sort_by to Sort taxonomies in taxonomy_list.html? HOT 6
- Sintax highlighting of `?Sized` rust code is invalid HOT 1
- Internal anchors can be added by templates HOT 1
- support treating standalone .html files as pages HOT 4
- JPEG XL support for image processing? HOT 5
- Improve documentation about enabling Sass
- `zola serve` with `--output-dir` stopped serving assets in v0.18.0 HOT 7
- PR Question - Docs Contributions HOT 6
- Incorrect Plist syntax: UnexpectedXmlCharactersExpectedElement (offset 56) HOT 2
- `zola serve` treats `_` and `-` as equivalent for static assets, other static web servers do not. HOT 1
- `resize_image` default compression parameters for PNG often make files larger HOT 1
- Excerpt separator not compatible with Hugo (or Jekyll), is `<!-- more -->` rather than `<!--more-->` HOT 2
- Shortcode markdown filter results in a superfluous newline at end HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zola.