So page was built using 3 different files, which makes possible to build advanced page layouts and very simple at the same time. I like it a lot.
I have 2 questions, let me ask please:
We saw in the repository bio.md file, why Hugo didn’t build separate page for bio.md markdown? I thought Hugo will build pages by default for all mardown pages, something like /showcase/pharmaceal/index and /showcase/pharmaceal/bio? In this case, of couse we don’t need bio.md page, because it’s just extra duplicate of content, which not necessary.
If I want to build showcase card instead separate page for showcase. Let’s say, I wan’t to convert the page above to component, and in the one page should been displayed a lot of showcases with full content in the cards. Can I build a complex component within one page? Instead building a separate page using index.md file + 2 extra files (bio.md + image). Basically I want to use files like index.md + bio.md + image to build one component, not a one separate page.
Sorry for the bad English and grammar errors, I’m not a native speaker.
When you have tested and get stuck, post your question and a link to your repo so we can see the code. A lot of helpful people here in the forum but without the code they can only guess.
Thank you a lot for the answer! Looks like page bundles exactly what I needed.
I’m not coding my site yet, please, let me ask one question.
If I have article about Toyota cars, like:
posts
toyota
index.md
Then I create separate folder within my post, where I contain content of components, in my case it’s a different car models of toyota. Like:
posts
toyota
index.md
camry-folder // which is component, not a page, doesn't contain index.md file
camry.jpg
price.md // content with price
pros-cons.md
description.md
corolla-folder // another car
corolla.jpg
price.md
pros-cons.md
description.md
Can I do something like that? Then build car model components using markdown and image files within my folder?
In the end, I want to build a component like that:
posts
toyota
index.md
camry-folder // which is component, not a page, doesn't contain index.md file
camry.jpg
price.md // content with price
pros-cons.md
description.md
corolla-folder // another car
corolla.jpg
price.md
pros-cons.md
description.md
This makes “toyota” directory in to a leaf bundle with a lot of resources.
The problem with using a leaf bundle: you can’t (easily) iterate by subdirectory. To me, this is a section page with content views (e.g., .Render “card”).
“marking the sub post not to render, only list”
What is this mean, sir? Little bit explanation, please?
I’m trying to leave from React to no JS, pure HTML websites.
But GoHugo too complicated to undrestand(framework only for smart old farts like you sir, lot of things complicated in documentation(
And no properly coded templates where I can learn (most of themes just hard code components in HTML, don’t make them reusable, etc).