From cbb52d74a4aef887c5b098c9214453e57ca5aa87 Mon Sep 17 00:00:00 2001 From: zloylinux Date: Mon, 28 Apr 2025 16:03:17 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20parse=20markdown=20in=20pos?= =?UTF-8?q?t=20summary=20&=20description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/tabi/sass/parts/_header.scss | 9 ++++----- themes/tabi/sass/parts/_posts_list.scss | 2 +- themes/tabi/templates/macros/list_posts.html | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/themes/tabi/sass/parts/_header.scss b/themes/tabi/sass/parts/_header.scss index 75daa89..ec00420 100644 --- a/themes/tabi/sass/parts/_header.scss +++ b/themes/tabi/sass/parts/_header.scss @@ -98,11 +98,10 @@ header { .tag { margin-inline-end: 0; } - - .separator { - margin-inline-end: 0.2rem; - user-select: none; - } +} +.separator { + margin-inline-end: 0.2rem; + user-select: none; } .language-switcher { diff --git a/themes/tabi/sass/parts/_posts_list.scss b/themes/tabi/sass/parts/_posts_list.scss index 4e976c2..e74f89c 100644 --- a/themes/tabi/sass/parts/_posts_list.scss +++ b/themes/tabi/sass/parts/_posts_list.scss @@ -126,7 +126,7 @@ $padding: 2.5rem; @media only screen and (max-width: 1100px) { .bloglist-container { - grid-template-columns: 1fr; + display: block; } .pinned-label svg { diff --git a/themes/tabi/templates/macros/list_posts.html b/themes/tabi/templates/macros/list_posts.html index 3c51b5b..2076194 100644 --- a/themes/tabi/templates/macros/list_posts.html +++ b/themes/tabi/templates/macros/list_posts.html @@ -83,7 +83,7 @@
  • {{- macros_format_date::format_date(date=post.date, short=false, language_strings=language_strings) -}}
  • {%- endif -%} {%- if show_date and show_updated -%} -
  • {{- separator -}}
  • +
  • {{- separator -}}
  • {%- endif -%} {%- if show_updated -%} {%- set last_updated_str = macros_translate::translate(key="last_updated_on", default="Updated on $DATE", language_strings=language_strings) -%} @@ -142,9 +142,9 @@
    {% if post.description %} -

    {{ post.description }}

    +

    {{ post.description | markdown(inline=true) | safe }}

    {% elif post.summary %} -

    {{ post.summary | striptags | trim_end_matches(pat=".") | safe }}…

    +

    {{ post.summary | markdown(inline=true) | trim_end_matches(pat=".") | safe }}…

    {% endif %}
    {{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }}