aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/sidebar.html
blob: 51c835eaf01537bcb5755b61777eb61e1a3e6f29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h2 class="h4">About the project</h2>
<p>{{ site.project.description }}. Feel free to contribute or contact me.</p>
<div class="list-group wide-enough">
  <a class="list-group-item" href="{{ site.github.repository_url }}"><span class="glyphicon glyphicon-home"></span>&nbsp;GitHub repository</a>
  <a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span>&nbsp;{{ site.personal_info.email }}</a>
</div>
<h2 class="h4">Latest posts</h2>
{% if site.posts.size == 0 %}
  <p>Sorry, there're no posts yet.</p>
{% else %}
  <div class="list-group wide-enough">
  {% for post in site.posts limit: 5 %}
    <a class="list-group-item" href="{{ site.baseurl }}{{ post.url }}">
      <span class="badge"><span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date_to_string }}</span>
      <span class="glyphicon glyphicon-file"></span>&nbsp;{{ post.title }}
    </a>
  {% endfor %}
  </div>
{% endif %}