From 526819702fe16d4d6e6fa62c9557217cae491d4f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 5 Apr 2022 17:12:13 +0200 Subject: sidebar: redesign sections --- _includes/jekyll-theme/sidebar/about.html | 16 ++++++++++++++-- _includes/jekyll-theme/sidebar/latest-posts.html | 11 ++++++++--- 2 files changed, 22 insertions(+), 5 deletions(-) (limited to '_includes') diff --git a/_includes/jekyll-theme/sidebar/about.html b/_includes/jekyll-theme/sidebar/about.html index 8bdf204..9ea927c 100644 --- a/_includes/jekyll-theme/sidebar/about.html +++ b/_includes/jekyll-theme/sidebar/about.html @@ -11,8 +11,20 @@ {% capture project_desc %}{{ project_desc }}. {% endcapture %} {% endif %} {% capture project_desc %}{{ project_desc }}Feel free to contribute or contact me.{% endcapture %} -

{{ project_desc }}

+ +
+
+

about

+
+
+

{{ project_desc }}

+
+
+
+
+

links

+
{% if site.github %} {% assign github_link = site.settings.navbar.github.link | default: 'GitHub' %} {% assign github_icon = site.settings.navbar.github.icon | default: 'globe' %} @@ -24,6 +36,6 @@
{% endcapture %} -{% include jekyll-theme/sidebar/entry.html header='About' content=about_content %} +{% include jekyll-theme/sidebar/entry.html content=about_content %} {% endunless %} diff --git a/_includes/jekyll-theme/sidebar/latest-posts.html b/_includes/jekyll-theme/sidebar/latest-posts.html index 2596569..a2ac843 100644 --- a/_includes/jekyll-theme/sidebar/latest-posts.html +++ b/_includes/jekyll-theme/sidebar/latest-posts.html @@ -3,16 +3,21 @@ {% capture latest_posts_content %}
+
+

latest posts

+
{% for post in site.posts limit: 5 %} -  {{ post.date | date: '%-d %b %Y' }} -  {{ post.title }} +
+ {{ post.title }} +  {{ post.date | date: '%-d %b %Y' }} +
{% endfor %}
{% endcapture %} -{% include jekyll-theme/sidebar/entry.html header='Latest posts' content=latest_posts_content %} +{% include jekyll-theme/sidebar/entry.html content=latest_posts_content %} {% endif %} {% endunless %} -- cgit v1.2.3