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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Blog post template

Started by matteo 7 years ago · 2 replies · 887 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, 8 months ago
6 99 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 186 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 62 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 257 1 year ago