Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Hugo/Jekyll like data files
In Hugo there is a folder when You can put “data” files (in YAML or JSON).
For example all questions and answers can sit in “faq.yaml” file in plain text – easy to change, easy to maintain.
How can one implement similar solution with Textpattern?
Fac Si Facis
Offline
Re: Hugo/Jekyll like data files
Hugo is of course for static websites, not dynamic ones.
Why do you think that it is simpler to have the Q&A in a yaml file and not an article?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Hugo/Jekyll like data files
It’s not about “static websites” it’s about data structures to iterate over.
For example you can have “list of books” – so name, author, rating, reading date, theme.
Now You can:
- on Author site put books.
- on Home put last book readed
- on Section put list of books only with theme x.
Other situation – you make chess tournaments – and you have cross table in json file.
Of course You can put it in article and format it there, but you can’t pull first 3 places on home site.
This is something I love in HUGO – adding new things with minimum effort.
Last edited by alekk (2021-01-31 09:33:18)
Fac Si Facis
Offline
Offline
Re: Hugo/Jekyll like data files
It looks like what I wanted. Thank You.
Fac Si Facis
Offline
Offline
Pages: 1