forked from deepStateMirrors/tabi
✨ feat: parse markdown in post summary & description (#517)
Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
parent
f47cefd42b
commit
93af295d78
3 changed files with 8 additions and 8 deletions
|
@ -98,11 +98,11 @@ header {
|
||||||
.tag {
|
.tag {
|
||||||
margin-inline-end: 0;
|
margin-inline-end: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.separator {
|
.separator {
|
||||||
margin-inline-end: 0.2rem;
|
margin-inline-end: 0.2rem;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.language-switcher {
|
.language-switcher {
|
||||||
|
|
|
@ -126,7 +126,7 @@ $padding: 2.5rem;
|
||||||
|
|
||||||
@media only screen and (max-width: 1100px) {
|
@media only screen and (max-width: 1100px) {
|
||||||
.bloglist-container {
|
.bloglist-container {
|
||||||
grid-template-columns: 1fr;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pinned-label svg {
|
.pinned-label svg {
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
<li class="date">{{- macros_format_date::format_date(date=post.date, short=false, language_strings=language_strings) -}}</li>
|
<li class="date">{{- macros_format_date::format_date(date=post.date, short=false, language_strings=language_strings) -}}</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if show_date and show_updated -%}
|
{%- if show_date and show_updated -%}
|
||||||
<li class="mobile-only">{{- separator -}}</li>
|
<li class="mobile-only separator">{{- separator -}}</li>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if show_updated -%}
|
{%- if show_updated -%}
|
||||||
{%- set last_updated_str = macros_translate::translate(key="last_updated_on", default="Updated on $DATE", language_strings=language_strings) -%}
|
{%- set last_updated_str = macros_translate::translate(key="last_updated_on", default="Updated on $DATE", language_strings=language_strings) -%}
|
||||||
|
@ -142,9 +142,9 @@
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
{% if post.description %}
|
{% if post.description %}
|
||||||
<p>{{ post.description }}</p>
|
<p>{{ post.description | markdown(inline=true) | safe }}</p>
|
||||||
{% elif post.summary %}
|
{% elif post.summary %}
|
||||||
<p>{{ post.summary | striptags | trim_end_matches(pat=".") | safe }}…</p>
|
<p>{{ post.summary | markdown(inline=true) | trim_end_matches(pat=".") | safe }}…</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<a class="readmore" href="{{ post.permalink }}">{{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }} <span class="arrow">→</span></a>
|
<a class="readmore" href="{{ post.permalink }}">{{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }} <span class="arrow">→</span></a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue