<div class="blog-important-big">
{{#each section.blocks as |block|}}
{{#if block.type == "slide"}}
<div class="index-like-blog-main">
{{#each block.settings.blog_collection.articles limit=block.settings.blog_num as |article|}}
<div class="index-like-blog-item">
<div class="index-like-blog-item-hover">
<img src="{{article.image}}" alt="Article 1">
<div class="index-like-blog-item-overlay"></div>
</div>
<div class="index-like-blog-item-content">
<h2 class="index-like-blog-item-title">{{article.title}}</h2>
<p class="index-like-blog-item-text">{{article.excerpt}}</p>
</div>
<div class="index-like-blog-item-footer">
{{ date article.created_at '%B %d, %Y' }} – {{article.author}}
</div>
</div>
{{/each}}
</div>
{{/if}}
{{/each}}
</div>
{{#schema}}
{
"name": "精选博客",
"settings": [],
"blocks": [
{
"name": "Slide",
"type": "slide",
"icon": "image",
"settings": [
{
"id": "blog_collection",
"type": "blog",
"label": "博客集合"
},
{
"id": "blog_num",
"type": "range",
"label": "博客集合",
"default": 3,
"min": 3,
"max": 12,
"step": 1
}
]
}
]
}
{{/schema}}