forked from kracekumar/bangalore.python.org.in
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathcommunity-blog.html
More file actions
32 lines (27 loc) · 1.21 KB
/
community-blog.html
File metadata and controls
32 lines (27 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
layout: page
title: Community Blog
description: List of all posts in the Community Blog.
permalink: /community-blog/
---
<!-- Community Blog Index
================================================== -->
<section class="recent-posts">
<div class="row listrecent">
<div class="col-lg-12 col-md-12 mb-30px">
{% assign community_posts = site.community %}
{% assign sorted_posts = community_posts | reverse %}
{% for post in sorted_posts %}
{% assign currentDate = post.date | date: "%Y" %}
{% if currentDate != myDate %}
{% unless forloop.first %}</ul>{% endunless %}
<h3>{{ currentDate }}</h3>
<ul style="list-style-type:none;">
{% assign myDate = currentDate %}
{% endif %}
<li><span class="text-muted">{{ post.date | date: "%B %-d" }}</span> - <a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">{{ post.title }}</a></li>
{% if forloop.last %}</ul>{% endif %}
{% endfor %}
</div>
</div>
</section>