Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Mass page creation in grav

Solved by pamtbaau View solution

Started by Daniel Dobiášovský 4 years ago · 6 replies · 596 views
4 years ago

I have 230 pages that contain only one sentence, I would like to create them in a hierarchy of pages and subpages, is there any way?

Ex: to make one page with a separator that tells where the next page starts?

Thanks so much for any tip.

4 years ago

@Deight, I'm afraid I do not quite understand what you are trying to achieve and I'm not fan of guessing...

I would like to create them in a hierarchy of pages and subpages

Do you mean a tree of subfolders on the OS where each subfolder contains a *.md file?

Ex: to make one page with a separator that tells where the next page starts?

Are you talking about markdown? What does it look like?

4 years ago

I probably spoke badly.

I understand the hierarchy, I understand the markdown as well.

I would like to mass create a site using a script.

Ex: I need a 200x page with the tag <source> 1 - 200 </source>

But I don't want to do it manually.

I was wondering if there is any way to tell the .md file

YAML
- top of page 1

page content code

- end of page 1
- top of page 2

...

4 years ago Solution

@Deight, I think I may understand the file hierarchy, but the .md is still unclear..

Anyway, since this seems to be a shell script based solution and has not much to do with Grav, you might be better off asking about shell scripts on StackOverflow which has a much larger community.

👍 1
4 years ago

Did you ever get an answer, and if so, what was it, please?

4 years ago

Hi, I've tried a lot of things, I've partially succeeded, but never 100% of what I needed. I used windows batch to solve it, here is the thread but I didn't finish it... 😕

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 57 14 hours ago
Support · by Anna, 3 days ago
2 65 17 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago