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

Blog post template

Started by matteo 7 years ago · 2 replies · 1022 views
7 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

7 years ago

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

7 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, 9 months ago
6 565 9 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 527 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 450 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 373 1 year ago
Content & Markdown · by belthasar, 2 years ago
4 681 2 years ago