Skip to content

Commit 69f9343

Browse files
committed
added event description image
1 parent a3e227f commit 69f9343

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

_data/events/2022-02-05-ras-expert-talk.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"thumbnails": ["ras_inaugration_expert_talk.jpeg"],
44
"date": "5th February 2022",
55
"sig": "All",
6-
"description": "We welcome everyone to attend the Robotics and Automation Society Student Chapter Inauguration! The Inauguration event would be followed by an expert talk by Mr. Nagarakshith M Sreenivasulu, NITK Alumni and Autonomy Engineer at Brain Corp."
6+
"description": "We welcome everyone to attend the Robotics and Automation Society Student Chapter Inauguration! The Inauguration event would be followed by an expert talk by Mr. Nagarakshith M Sreenivasulu, NITK Alumni and Autonomy Engineer at Brain Corp.",
7+
"description_images": ["nagarakshith-talk.jpg"],
78
}
123 KB
Loading

events.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,15 @@ <h3 class="modal-title" id="exampleModalLongTitle">{{event[1].title}}</h3>
6868
{%if event[1].links[0].url%}
6969
<a href="{{event[1].links[0].url}}" class="btn btn-primary">{{event[1].links[0].title}}</a>
7070
{%endif%}
71-
71+
{%if event[1].description_images %}
72+
<br>
73+
<h4>
74+
Images
75+
</h4>
76+
{% for img_name in event[1].description_images %}
77+
<img src="/assets/img/events/{{img_name}}" alt="{{event[1].title}}">
78+
{% endfor %}
79+
{%endif%}
7280
</div>
7381
<div class="modal-footer">
7482
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>

0 commit comments

Comments
 (0)