File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ title: MonoGame
19
19
</a >
20
20
</div >
21
21
</div >
22
+
22
23
<div id =" carousel-item-container" class =" carousel-inner h-100" >
23
24
{% for game in games %}
24
25
{% if game .tags .includes (" Featured" ) %}
@@ -54,6 +55,35 @@ title: MonoGame
54
55
</button >
55
56
</section >
56
57
58
+ <section class =" container-xxl mb-5" >
59
+ <div class =" row" >
60
+ <h3 class =" fw-semibold mb-4 text-body-emphasis" >Latest News</h3 >
61
+ </div >
62
+ <div class =" mg-item-grid" >
63
+ {% for post in collections .blogPosts | reverse %}
64
+ {% if loop .index <= 3 %}
65
+ <a class =" mg-no-link" href =" {{ post.url }}" >
66
+ <div class =" mg-card mg-box-shadow h-100 d-flex flex-column" >
67
+ <div class =" mg-card-thumbnail"
68
+ style =" background-image : url (' {{ post.data.image }}' );"
69
+ href =" {{ post.url }}" ></div >
70
+ <div class =" mg-card-body" >
71
+ <small >
72
+ {{ post .data .author }} -- {{ post .date | readableDate }}
73
+ </small >
74
+ <div class =" mg-card-title" >{{ post .data .title }} </div >
75
+ <div class =" mg-card-excerpt mb-3" title =" {{ post.data.excerpt }}" >
76
+ <p >{{ post .data .excerpt }} </p >
77
+ </div >
78
+ Click to read more...
79
+ </div >
80
+ </div >
81
+ </a >
82
+ {% endif %}
83
+ {% endfor %}
84
+ </div >
85
+ </section >
86
+
57
87
<section class =" container-xxl mb-5" >
58
88
<div class =" row" >
59
89
<div class =" col-12 col-md-6" >
Original file line number Diff line number Diff line change @@ -868,4 +868,4 @@ blockquote {
868
868
869
869
.mg-two-column-list li {
870
870
margin-left : 1.5rem ; /* Adjusts indentation for list items */
871
- }
871
+ }
You can’t perform that action at this time.
0 commit comments