Comments (2)
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.
Ah OK, I was thinking about it differently. The way you describe it makes a lot more sense :)
from wok.
Related Issues (20)
- why cannot publish chinese post? HOT 3
- Create Hierarchical Navigation Structure HOT 2
- Not rendering files with .md extension HOT 6
- Travis is broken. HOT 2
- wok_hooks HOT 2
- Question about installation dependencies (setup.py)
- Bug: Missing heading when using rst sources with lonely 1st level heading HOT 2
- Feature: Option to set the initial header level for reStructuredText
- Missing urls in site.pages
- Numbered lists break codeblocks. HOT 1
- Feature request - ignore pattern config item
- Audit dependencies HOT 1
- pep8 compliance HOT 3
- Wok doesn't exit 1 when there are errors.
- reStructuredText rendering errors don't show filename, just "string" HOT 6
- reStructuredText rendering errors have incorrect line numbers HOT 1
- I can't integrate tagging with pagination HOT 1
- Error when using tilde in author field
- Custom jinja2 filters?
- how to fix the error: "jinja2.exceptions.TemplateAssertionError: no filter named 'rejectattr' "??
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 wok.