diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-25 02:13:47 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-25 02:13:47 +0300 |
commit | 7f02962f5502bb581f0b50d534be0bcea0a739b2 (patch) | |
tree | 43a1cd08cbb888e674e0333a054da787ce8c1599 /_includes/common/sidebar.html | |
parent | README update (diff) | |
download | jekyll-theme-7f02962f5502bb581f0b50d534be0bcea0a739b2.tar.gz jekyll-theme-7f02962f5502bb581f0b50d534be0bcea0a739b2.zip |
move common assets to common/, more info to config
Diffstat (limited to '_includes/common/sidebar.html')
-rw-r--r-- | _includes/common/sidebar.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html new file mode 100644 index 0000000..4637244 --- /dev/null +++ b/_includes/common/sidebar.html @@ -0,0 +1,16 @@ +<h4>About the project</h4> +<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> +<h4>Latest posts</h4> +{% 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 %} |