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+ < div id ="posts ">
2+ {% for post in site.posts %}
3+ < div class ="post-card ">
4+ < p > {{post.date | date_to_string }}</ p >
5+
6+ {% if post.post_photo %}
7+ < img alt ="{{post.title}} photo " src ={{post.post_photo}} >
8+ {% else %}
9+ < img alt ="placeholder " src ="assets/home/post_placeholder.jpg ">
10+ {% endif %}
11+ < a href ="{{ post.url }} ">
12+ < h2 >
13+ {{post.title}}
14+ </ h2 >
15+ </ a >
16+ </ div >
17+ {% endfor %}
18+ </ div >
Original file line number Diff line number Diff line change 3131
3232{% include testimonials.html %}
3333
34- < div id ="posts ">
35- {% for post in site.posts %}
36- < div class ="post-card ">
37- < p > {{post.date | date_to_string }}</ p >
38-
39- {% if post.post_photo %}
40- < img alt ="{{post.title}} photo " src ={{post.post_photo}} >
41- {% else %}
42- < img alt ="placeholder " src ="assets/home/post_placeholder.jpg ">
43- {% endif %}
44- < a href ="{{ post.url }} ">
45- < h2 >
46- {{post.title}}
47- </ h2 >
48- </ a >
49- </ div >
50- {% endfor %}
51- </ div >
34+ {% include list-posts.html %}
You can’t perform that action at this time.
0 commit comments