File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {% from ' macros/cards/frontmatter -card.njk' import frontMatterCard with context %}
1+ {% from ' macros/cards/blog -card.njk' import blogCard with context %}
22{% from ' macros/icon.njk' import icon with context %}
33
44{% extends " layouts/base.njk" %}
5454 <div class =" measure-1280 width-full center-margin pad-left-400 pad-right-400" >
5555 <div class =" blog-grid" >
5656 {% for fm in paged .pagination .items %}
57- {{ frontMatterCard (fm ) }}
57+ {% set post = {
58+ data : {
59+ thumbnail : fm .hero ,
60+ title : fm .title ,
61+ alt : fm .title ,
62+ description : fm .description ,
63+ tags : fm .tags ,
64+ authors : fm .authors ,
65+ date : fm .date
66+
67+ },
68+ url : fm .url
69+ } %}
70+ {{ blogCard (post ) }}
5871 {% endfor %}
5972 </div >
6073 {% include ' partials/pagination.njk' %}
Original file line number Diff line number Diff line change 1- {% from ' macros/card-authors.njk' import cardAuthors with context %}
2-
31{% macro authorCard (author ) %}
42<div class =" blog-card rounded-lg pad-300 md:pad-400 width-full text-align-center" >
53 {% if author .image %}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments