File tree Expand file tree Collapse file tree 2 files changed +13
-33
lines changed
Expand file tree Collapse file tree 2 files changed +13
-33
lines changed Original file line number Diff line number Diff line change 1616
1717 Returns:
1818{% endcomment %}
19+
1920{% assign post = include.event %}
2021< div class ="col-lg-12 no-padding-x ">
21- {% if upcoming_event == true %}
22- < div >
23- {% unless post.date == current_date %}
24- < p class ="date "> < i class ="far fa-calendar-alt "> </ i > {{ post.date | date: "%e %B %Y" }}</ p >
25- {% endunless %}
26- {% assign current_date = post.date %}
27- {% include get_project.html event = post %}
28- < h3 > < a href ="{{ post.url }} "> {{ post.title }}</ a > </ h3 >
29- <!--
30- <img src="{{ site.baseurl }}/{{ project.logo }}" alt="">
31- <p class="content">{{ post.content }}</p>
32- -->
33- < p class ="text-capitalize "> < i class ="fas fa-map-marker-alt "> </ i > {{ post.category }}</ p >
34- {% unless forloop.last %}< hr class ="chapter__divider-left "/> {% endunless %}
35- </ div >
36- {% else %}
37- < p > No upcoming events at the moment</ p >
38- {% endif %}
39- </ div >
22+ < div >
23+ {% unless post.date == current_date %}
24+ < p class ="date "> < i class ="far fa-calendar-alt "> </ i > {{ post.date | date: "%e %B %Y" }}</ p >
25+ {% endunless %}
26+ {% assign current_date = post.date %}
27+ {% include get_project.html event = post %}
28+ < h3 > < a href ="{{ post.url }} "> {{ post.title }}</ a > </ h3 >
29+ < p class ="text-capitalize "> < i class ="fas fa-map-marker-alt "> </ i > {{ post.category }}</ p >
30+ {% unless forloop.last %}< hr class ="chapter__divider-left "/> {% endunless %}
31+ </ div >
32+ </ div >
4033
4134
4235
Original file line number Diff line number Diff line change @@ -54,20 +54,7 @@ <h2>Upcoming events</h2>
5454 {% if upcoming_event == true %}
5555 {% assign current_date = "" %}
5656 {% for post in posts %}
57- < div >
58- {% unless post.date == current_date %}
59- < p class ="date "> < i class ="far fa-calendar-alt "> </ i > {{ post.date | date: "%e %B %Y" }}</ p >
60- {% endunless %}
61- {% assign current_date = post.date %}
62- {% include get_project.html event = post %}
63- < h3 > < a href ="{{ post.url }} "> {{ post.title }}</ a > </ h3 >
64- <!--
65- <img src="{{ site.baseurl }}/{{ project.logo }}" alt="">
66- <p class="content">{{ post.content }}</p>
67- -->
68- < p class ="text-capitalize "> < i class ="fas fa-map-marker-alt "> </ i > {{ post.category }}</ p >
69- {% unless forloop.last %}< hr /> {% endunless %}
70- </ div >
57+ {% include event_layout.html event=post %}
7158 {% endfor %}
7259 {% else %}
7360 < p > No upcoming events at the moment</ p >
You can’t perform that action at this time.
0 commit comments