Hello
I try to make a shortcode that list my posts
and I would like to classify the articles in 2 section
I did a themes\sandbox\layouts\shortcodes\blogposts.html
{{ $count := .Get "count" | default 6 }}
{{ $pages := where .Site.RegularPages "Type" "in" site.Params.mainSections }}
<section class="section">
<div class="container">
<h2 class="title has-text-centered">Blog</h2>
<div class="columns is-multiline">
{{ range first $count $pages }}
<div class="column is-one-third">
{{ partial "widgets/post-card.html" . }}
</div>
{{ end }}
</div>
</section>
in my config.toml
[params]
author = "Alex"
authorImage = "/images/avatar-musk.jpg"
mainSections = ["blog", "tutos"]
And when i put {{< blogposts >}}
in my markdown file
But i would like get <h2>Blog</h2>
and another section