Posts and Pages


#1

New here. I don’t see anything on the docs on how to create posts (like blog posts) or how to create new pages. Is either one possible?


#2

@ibdf Take a look at this page:

https://docs.vapid.com/learn-more#sections

For new pages, just create a new page (e.g., about.html), and then use a section inside it:

{{#section about}}
<div>
  <h2>{{title}}</h2>
  {{body type=html}}
</div>
{{/section}}

For blog posts, see the “Repeating Content” and “Link to Repeating Content” sections. Let me know if you have any questions.


#3

Duh, for the pages question… I for some reason stuck in my mind that I had to dynamically create them. I had read about the repeating content option, but I thought that was more like a repeating group of fields.

Thanks.


#4

Tbh, that part of the documentation is confusing, and needs to be rewritten.