Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Blog post template

Started by matteo 8 years ago · 2 replies · 1198 views
8 years ago

Hi guys,

super simple question. I'm using the Saturn skeleton, but the question is worldwide.

I'm creating a blog website and many many posts have the same settings (similar tags and categories, routes, process twig, etc etc).

So, is there a way to create a psot blog template that I can "recycle" when adding a new post and just changing some small stuff instead to add many settings?

Cheers and thanks for the help

Matteo

8 years ago

In that case create a blank post with all options set. Duplicate that post and edit your content.

8 years ago

just look at the Documentation for Blogs - the standard template for a blog post is partials/blog_item.html.twig
you can take this as a starting point to create your own my_blog_item.html.twig 😃

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 12 months ago
6 1286 12 months ago
Content & Markdown · by Ton Haarmans, 2 years ago
10 1015 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 890 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 815 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1233 2 years ago