@@ -55,17 +55,19 @@ <h4>{{ post.title }}</h4>
5555</ div >
5656{% endif %}
5757
58- {% assign category_posts = site.posts | where_exp: "post", "post. categories contains 'video'" %}
58+ {% assign category_posts = site.categories.blog %}
5959{% if category_posts and category_posts.size > 0 %}
6060< div class ="section ">
6161 < div class ="container ">
62+ < div class ="" style ="position:absolute;top:1em; right:1em; "> < a class ="btn btn-primary " href ="/news/blogs "> View All
63+ Blog Posts</ a > </ div >
6264 < div class ="row ">
63- < h3 > Presentations
65+ < h3 > Blog Posts
6466 < hr >
6567 </ h3 >
6668
6769 < div class ="grid gridNews ">
68- {% for post in category_posts limit:6 %}
70+ {% for post in site.categories.blog limit:6 %}
6971 < div class ="g-col-12 g-col-sm-6 g-col-md-4 ">
7072 < div class ="card shadow ">
7173 {% if post.image %}
@@ -74,12 +76,13 @@ <h3>Presentations
7476 < img src ="/images/posts/latest-feature.webp " class ="card-img-top img-fluid " alt ="# ">
7577 {% endif %}
7678 < div class ="card-body ">
77- < div class ="card-text "> {{ post.date | date: "%B %d, %Y" }}</ div >
78- < div class ="card-tagline "> {{ post.tagline }}</ div >
7979 < div class ="card-title ">
8080 < h4 > {{ post.title }}</ h4 >
8181 </ div >
82- < a class ="btn btn-primary " href ="{{ post.source_url }} "> View Presentation</ a >
82+ < div class ="card-text "> {{ post.date | date: "%B %d, %Y" }}</ div >
83+ < a class ="btn btn-primary " href ="{% if post.source_url and post.source_url != '' %}{{ post.source_url }}{% else %}{{ post.url | relative_url }}{% endif %} ">
84+ Read Blog Post
85+ </ a >
8386 </ div >
8487 </ div >
8588 </ div >
@@ -91,19 +94,17 @@ <h4>{{ post.title }}</h4>
9194</ div >
9295{% endif %}
9396
94- {% assign category_posts = site.categories.blog %}
97+ {% assign category_posts = site.posts | where_exp: "post", "post.categories contains 'video'" %}
9598{% if category_posts and category_posts.size > 0 %}
9699< div class ="section ">
97100 < div class ="container ">
98- < div class ="" style ="position:absolute;top:1em; right:1em; "> < a class ="btn btn-primary " href ="/news/blogs "> View All
99- Blog Posts</ a > </ div >
100101 < div class ="row ">
101- < h3 > Blog Posts
102+ < h3 > Presentations
102103 < hr >
103104 </ h3 >
104105
105106 < div class ="grid gridNews ">
106- {% for post in site.categories.blog limit:6 %}
107+ {% for post in category_posts limit:6 %}
107108 < div class ="g-col-12 g-col-sm-6 g-col-md-4 ">
108109 < div class ="card shadow ">
109110 {% if post.image %}
@@ -112,13 +113,12 @@ <h3>Blog Posts
112113 < img src ="/images/posts/latest-feature.webp " class ="card-img-top img-fluid " alt ="# ">
113114 {% endif %}
114115 < div class ="card-body ">
116+ < div class ="card-text "> {{ post.date | date: "%B %d, %Y" }}</ div >
117+ < div class ="card-tagline "> {{ post.tagline }}</ div >
115118 < div class ="card-title ">
116119 < h4 > {{ post.title }}</ h4 >
117120 </ div >
118- < div class ="card-text "> {{ post.date | date: "%B %d, %Y" }}</ div >
119- < a class ="btn btn-primary " href ="{% if post.source_url and post.source_url != '' %}{{ post.source_url }}{% else %}{{ post.url | relative_url }}{% endif %} ">
120- Read Blog Post
121- </ a >
121+ < a class ="btn btn-primary " href ="{{ post.source_url }} "> View Presentation</ a >
122122 </ div >
123123 </ div >
124124 </ div >
@@ -130,8 +130,8 @@ <h4>{{ post.title }}</h4>
130130</ div >
131131{% endif %}
132132
133-
134133{% assign upcoming_and_ongoing_events = site.events | where_exp: "event", "event.end_date > site.time" %}
134+ {% if upcoming_and_ongoing_events and upcoming_and_ongoing_events.size > 0 %}
135135< div class ="section ">
136136 < div class ="container ">
137137 < div class ="row ">
@@ -165,4 +165,5 @@ <h4>{{ event.title }}</h4>
165165 </ div >
166166 </ div >
167167</ div >
168+ {% endif %}
168169
0 commit comments