Skip to content

Commit

Permalink
#370 - Events page (#825)
Browse files Browse the repository at this point in the history
Co-authored-by: laco <skvarka.ladislav@gmail.com>
  • Loading branch information
L4co77 and Laco-code authored Dec 1, 2023
1 parent 71e8c7e commit 67d6e2f
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 6 deletions.
4 changes: 2 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ <h4>CONTRIBUTE</h4>
<a href="/documentation/contributing/">Contributing</a>
</li>
<li>
<a href="/documentation/contributing/roadmap/">Roadmap</a>
<a href="/events/">Events</a>
</li>
<li>
<a href="/events/world-moveit-day-2022/">World MoveIt Day</a>
<a href="/documentation/contributing/roadmap/">Roadmap</a>
</li>
<li>
<a href="/documentation/contributing/pullrequests/"
Expand Down
5 changes: 1 addition & 4 deletions _includes/nav-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownContribute">
<a class="dropdown-item" href="/documentation/contributing/">Contributing</a>
<a class="dropdown-item" href="/events/">Events</a>
<a class="dropdown-item" href="/documentation/contributing/roadmap/">Roadmap</a>
<a class="dropdown-item" href="/events/2023-google-summer-of-code/">2023 Google Summer of Code</a>
<!-- TODO(henningkayser) Update event info for 2023
<a class="dropdown-item" href="/events/2022-moveit-community-meeting/">2022 MoveIt Community Meeting</a>
<a class="dropdown-item" href="/events/world-moveit-day-2022/">World MoveIt Day</a>
-->
<a class="dropdown-item" href="/documentation/contributing/pullrequests/">Pull Requests</a>
<a class="dropdown-item" href="/documentation/contributing/code/">Development</a>
</div>
Expand Down
95 changes: 95 additions & 0 deletions events/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
author: admin
comments: false
date: 2013-12-08 23:55:02+00:00
layout: blog
slug: events
title: Events
---

<div class="row blog-main-row">
{% for post in site.categories.Events limit: 1 %}
<div class="col-md-12 col-lg-8">
<a href="{{ post.url }}">
{% if post.media_type == 'video' %}
<div class="blog-image-wrapper blog-image-wrapper-main">
<iframe
style="width:100%;"
height="315"
src="{{ post.media_link }}"
frameborder="0"
allowfullscreen
></iframe>
</div>
{% elsif post.media_type == 'image' %}
<div
class="blog-image-wrapper blog-image-wrapper-main real-image"
style="background-image: url('{{ post.media_link }}');"
></div>
{% else %}
<div class="blog-image-wrapper blog-image-wrapper-main">
<img src="/assets/images/main/default-image.jpg" style="width:100%;" />
</div>
{% endif %}
</a>
</div>
<div class="col-md-12 col-lg-4 blog-align-center">
<a href="{{ post.url }}">
<div class="blog-text-wrapper">
<span class="blog-date">
{{ post.date | date: "%B %d, %Y" }}
</span>
<h3>
{{ post.title }}
</h3>
<p class="dark-text">{{ post.description }}</p>
</div>
</a>
</div>
{% endfor %}
</div>
<div class="row blog-row">
{% for post in site.categories.Events offset:1 %}
<div class="col-sm-12 col-md-6 col-lg-4">
<div class="blog-single">
<a href="{{ post.url }}">
{% if post.media_type == 'video' %}
<div class="blog-image-wrapper">
<iframe
style="width:100%;"
height="315"
src="{{ post.media_link }}"
frameborder="0"
allowfullscreen
></iframe>
</div>
{% elsif post.media_type == 'image' %}
<div
class="blog-image-wrapper real-image"
style="background-image: url('{{ post.media_link }}');"
></div>
{% else %}
<div class="blog-image-wrapper">
<img
src="/assets/images/main/default-image.jpg"
style="width:100%;"
/>
</div>
{% endif %}
<div class="blog-text-wrapper">
<span class="blog-date">
{{ post.date | date: "%B %d, %Y" }}
</span>
<h3>{{ post.title | truncate: 50 }}</h3>
<p>{{ post.description | truncate: 156 }}</p>
</div>
</a>
</div>
</div>
{% endfor %}
</div>
<div class="row">
<a href="/feed.xml" class="rss-feed">
<img src="/assets/images/feed-icon.jpg" />
</a>
</div>

0 comments on commit 67d6e2f

Please sign in to comment.