Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions _includes/post-list-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ <h2 class="post-item-title">
{{ post.title }}
</h2>

<p class="post-item-excerpt">
{% if post.description %}
{{ post.description | strip_html | truncate: 160 | escape }}
{% else %}
{% include no-linenos.html content=post.content %}
{{ content | markdownify | strip_html | truncate: 160 | escape }}
{% endif %}
</p>

<div class="post-item-meta">
{% include datetime.html date=post.date lang=include.lang wrap='time' %}
{% include read-time.html content=post.content lang=include.lang %}
Expand Down
8 changes: 0 additions & 8 deletions _includes/related-posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ <h2 class="related-posts-title" id="related-posts-title" data-toc-skip>
<li>
<a href="{{ post.url | relative_url }}" class="related-item">
<span class="related-item-title">{{ post.title }}</span>
<span class="related-item-excerpt">
{% if post.description %}
{{ post.description | strip_html | truncate: 120 | escape }}
{% else %}
{% include no-linenos.html content=post.content %}
{{ content | markdownify | strip_html | truncate: 120 | escape }}
{% endif %}
</span>
{% include datetime.html date=post.date class="related-item-date" lang=include.lang wrap='time' %}
</a>
</li>
Expand Down
11 changes: 1 addition & 10 deletions _sass/layout/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,12 @@ $home-content-width: 760px;
.post-item-title {
@extend %text-clip;

margin: 0 0 0.5rem;
margin: 0 0 0.625rem;
font-size: 1.3125rem;
font-weight: 700;
line-height: 1.45;
}

.post-item-excerpt {
@extend %text-clip;

margin: 0 0 0.875rem;
font-size: 0.9375rem;
line-height: 1.65;
color: var(--post-list-text-color);
}

.post-item-meta {
display: flex;
align-items: center;
Expand Down
8 changes: 0 additions & 8 deletions _sass/layout/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,6 @@ $post-content-width: 740px;
color: var(--heading-color);
}

.related-item-excerpt {
@extend %text-clip;

-webkit-line-clamp: 1;
font-size: 0.875rem;
color: var(--post-list-text-color);
}

.related-item-date {
font-size: 0.8125rem;
font-style: normal;
Expand Down
Loading