| OLD | NEW |
| 1 {% if get_pages_metadata({"parent": "blog/index"}) %} | 1 {% if get_pages_metadata({"parent": "blog/index"}) %} |
| 2 <div class="bg-accent"> | 2 <div class="bg-accent"> |
| 3 <section class="center group-container"> | 3 <section class="center group-container"> |
| 4 <h2 id="recent-posts"> | 4 <h2 id="recent-posts"> |
| 5 {{ "Recent blog posts" | translate("recent-blog-posts", "Recent blog posts
heading") }} | 5 {{ "Recent blog posts" | translate("recent-blog-posts", "Recent blog posts
heading") }} |
| 6 </h2> | 6 </h2> |
| 7 <div class="row"> | 7 <div class="row"> |
| 8 {% for post in limit_sort(get_pages_metadata({"parent": "blog/index"})) %} | 8 {% for post in limit_sort(get_pages_metadata({"parent": "blog/index"})) %} |
| 9 <div class="card col-6"> | 9 <div class="card col-6"> |
| 10 <div class="row"> | 10 <div class="row"> |
| 11 <div class="col-4"> | 11 <div class="col-4"> |
| 12 <a href="{{ post["page"] }}"> | 12 <a href="{{ post["page"] }}"> |
| 13 <img | 13 <img |
| 14 class="block" | |
| 15 src="{{ post["featured_img_url"] }}" | 14 src="{{ post["featured_img_url"] }}" |
| 16 alt="{{ post["featured_img_alt"] }}"> | 15 alt="{{ post["featured_img_alt"] }}"> |
| 17 </a> | 16 </a> |
| 18 </div> | 17 </div> |
| 19 <div class="col-8"> | 18 <div class="col-8"> |
| 20 <a href="{{ post["page"] }}"> | 19 <a href="{{ post["page"] }}"> |
| 21 <h3>{{ post["title"] }}</h3> | 20 <h3>{{ post["title"] }}</h3> |
| 22 </a> | 21 </a> |
| 23 </div> | 22 </div> |
| 24 </div> | 23 </div> |
| 25 </div> | 24 </div> |
| 26 {% endfor %} | 25 {% endfor %} |
| 27 </section> | 26 </section> |
| 28 </div> | 27 </div> |
| 29 {% endif %} | 28 {% endif %} |
| OLD | NEW |