diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-12-01 22:21:20 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-12-01 22:21:20 +0300 |
commit | b2c5cf1ae379e8c29cbf1250a8b4eec7577a00fb (patch) | |
tree | ef59ffadb2a9067429d15ef03b076428b22884b8 /_includes/common | |
parent | <nav>: role="navigation" (diff) | |
download | blog-b2c5cf1ae379e8c29cbf1250a8b4eec7577a00fb.tar.gz blog-b2c5cf1ae379e8c29cbf1250a8b4eec7577a00fb.zip |
make the sidebar two-column
Diffstat (limited to '_includes/common')
-rw-r--r-- | _includes/common/sidebar.html | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html index 51c835e..a4b145d 100644 --- a/_includes/common/sidebar.html +++ b/_includes/common/sidebar.html @@ -1,19 +1,25 @@ -<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> GitHub repository</a> - <a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ 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> {{ post.date | date_to_string }}</span> - <span class="glyphicon glyphicon-file"></span> {{ post.title }} - </a> - {% endfor %} +<div class="row"> + <div class="col-xs-12 col-sm-6 col-md-12"> + <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> GitHub repository</a> + <a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ site.personal_info.email }}</a> + </div> + </div> + <div class="col-xs-12 col-sm-6 col-md-12"> + <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> {{ post.date | date_to_string }}</span> + <span class="glyphicon glyphicon-file"></span> {{ post.title }} + </a> + {% endfor %} + </div> + {% endif %} </div> -{% endif %} +</div> |