Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Blog post template

Started by matteo 7 years ago · 2 replies · 1102 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, 11 months ago
6 962 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 764 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 676 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 602 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 985 2 years ago