From a768a7fa84577a5975fa782dd81cdab066dcff12 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 28 Oct 2022 07:39:20 +0200 Subject: posts: redesign feed again Put dates on the left, this looks nicer. --- _layouts/post.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '_layouts') diff --git a/_layouts/post.html b/_layouts/post.html index 674b810..dcf667a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,6 +1,17 @@ --- layout: default --- -{% include jekyll-theme/posts/header.html title=page.title date=page.date category=page.category %} +{% capture date %}{%- include jekyll-theme/posts/date.html date=page.date monospace=true -%}{% endcapture %} + +{% assign category = "" %} +{% if page.category %} + {% capture category %}{%- include jekyll-theme/categories/label.html link=true category=page.category monospace=true -%} {% endcapture %} +{% endif %} + +{% capture date %}{{ category }}{{ date }}{% endcapture %} + +{% capture title %}

{{ page.title }}

{% endcapture %} + +{% include jekyll-theme/flex-header.html title=title right=date %} {{ content }} {% include jekyll-theme/sidebar/sep.html %} -- cgit v1.2.3