aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-10-28 07:39:20 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-10-28 11:11:20 +0200
commita768a7fa84577a5975fa782dd81cdab066dcff12 (patch)
tree14868bf9073c1b6d2f2fc861a0e4cac192c51f8c /_layouts
parentposts: right-align the date (diff)
downloadjekyll-theme-a768a7fa84577a5975fa782dd81cdab066dcff12.tar.gz
jekyll-theme-a768a7fa84577a5975fa782dd81cdab066dcff12.zip
posts: redesign feed again
Put dates on the left, this looks nicer.
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/post.html13
1 files changed, 12 insertions, 1 deletions
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 -%}&nbsp;{% endcapture %}
+{% endif %}
+
+{% capture date %}{{ category }}{{ date }}{% endcapture %}
+
+{% capture title %}<h1>{{ page.title }}</h1>{% endcapture %}
+
+{% include jekyll-theme/flex-header.html title=title right=date %}
{{ content }}
{% include jekyll-theme/sidebar/sep.html %}