From 49021944e3b4881486ae27cd48acf9196a0b6ed7 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Mon, 23 Aug 2021 20:08:29 +0300 Subject: refactor post layout add go back link to the heading instead of list use div.post-header-info (list was not right) --- _includes/post-preview.html | 2 +- _includes/title-with-backlink.html | 4 ++++ _layouts/post.html | 21 +++++++++++---------- 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 _includes/title-with-backlink.html diff --git a/_includes/post-preview.html b/_includes/post-preview.html index 53ed59d..05cc4f1 100644 --- a/_includes/post-preview.html +++ b/_includes/post-preview.html @@ -7,7 +7,7 @@ read more...

-

{{ post.date | date_to_string }} | +

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

diff --git a/_includes/title-with-backlink.html b/_includes/title-with-backlink.html new file mode 100644 index 0000000..ee7a10e --- /dev/null +++ b/_includes/title-with-backlink.html @@ -0,0 +1,4 @@ + diff --git a/_layouts/post.html b/_layouts/post.html index 30029a8..602cfce 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,18 +4,19 @@ layout: default
-

{{ page.title }}

-
    -
  • {{ page.date | date: "%F" }}
  • + {% include title-with-backlink.html title=page.title backlink="/blog/" %} +
    + {% if page.tags.size > 0 %} -
  • |
  • -
  • tags:
  • - {% for tag in page.tags %} -
  • {{ tag }}
  • - {% endfor %} +

    tags:

    +
      + {% for tag in page.tags %} +
    • {{ tag }}
    • + {% endfor %} {% endif %} -
    +
+

-{{ content }} + {{ content }} -- cgit v1.2.3