From 5ed1e6e32918a6e98e6854017248e3e88e95f87c Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Sun, 23 May 2021 19:55:39 +0300 Subject: add latest post to the home page and add tags to post-preview.html --- _includes/post-preview.html | 7 ++++++- _layouts/about-page.html | 42 ++++++++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 19 deletions(-) diff --git a/_includes/post-preview.html b/_includes/post-preview.html index d86c92c..53ed59d 100644 --- a/_includes/post-preview.html +++ b/_includes/post-preview.html @@ -6,5 +6,10 @@

read more...

-

{{ post.date | date_to_string }}

+ +

{{ post.date | date_to_string }} | + {% for tag in post.tags %}{{tag}} + {% endfor %} +

+
diff --git a/_layouts/about-page.html b/_layouts/about-page.html index 205bce6..66bad0a 100644 --- a/_layouts/about-page.html +++ b/_layouts/about-page.html @@ -4,27 +4,33 @@ layout: default
- aaoth-photo - + aaoth-photo +
{{ content }} +
+

latest post

+ {% assign post = site.posts[0] %} + {% include post-preview.html %} +
+ -- cgit v1.2.3