{{ page.title }}
+ {% if page.description %} +{{ page.description }}
+ {% endif %}
diff --git a/_posts/2019-08-08-text-and-typography.md b/_posts/2019-08-08-text-and-typography.md
index 6551cb5..7064d5d 100644
--- a/_posts/2019-08-08-text-and-typography.md
+++ b/_posts/2019-08-08-text-and-typography.md
@@ -1,5 +1,6 @@
---
title: Text and Typography
+description: Examples of text, typography, math equations, diagrams, flowcharts, pictures, videos, and more.
author: cotes
date: 2019-08-08 11:33:00 +0800
categories: [Blogging, Demo]
@@ -13,8 +14,6 @@ image:
alt: Responsive rendering of Chirpy theme on multiple devices.
---
-This post is to show Markdown syntax rendering on [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/fork), you can also use it as an example of writing. Now, let's start looking at text and typography.
-
## Headings
diff --git a/_posts/2019-08-08-write-a-new-post.md b/_posts/2019-08-08-write-a-new-post.md
index 08fb8e7..aab434c 100644
--- a/_posts/2019-08-08-write-a-new-post.md
+++ b/_posts/2019-08-08-write-a-new-post.md
@@ -73,6 +73,18 @@ Having said that, the key `author` can also identify multiple entries.
> The benefit of reading the author information from the file `_data/authors.yml`{: .filepath } is that the page will have the meta tag `twitter:creator`, which enriches the [Twitter Cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started#card-and-content-attribution) and is good for SEO.
{: .prompt-info }
+### Post Description
+
+By default, the first words of the post are used to display on the home page for a list of posts, in the _Further Reading_ section, and in the XML of the RSS feed. If you don't want to display the auto-generated description for the post, you can customize it using the `description` field in the _Front Matter_ as follows:
+
+```yaml
+---
+description: Short summary of the post.
+---
+```
+
+Additionally, the `description` text will also be displayed under the post title on the post's page.
+
## Table of Contents
By default, the **T**able **o**f **C**ontents (TOC) is displayed on the right panel of the post. If you want to turn it off globally, go to `_config.yml`{: .filepath} and set the value of variable `toc` to `false`. If you want to turn off TOC for a specific post, add the following to the post's [Front Matter](https://jekyllrb.com/docs/front-matter/):
diff --git a/_posts/2019-08-09-getting-started.md b/_posts/2019-08-09-getting-started.md
index a411dbc..701824f 100644
--- a/_posts/2019-08-09-getting-started.md
+++ b/_posts/2019-08-09-getting-started.md
@@ -1,5 +1,8 @@
---
title: Getting Started
+description: >-
+ Get started with Chirpy basics in this comprehensive overview.
+ You will learn how to install, configure, and use your first Chirpy-based website, as well as deploy it to a web server.
author: cotes
date: 2019-08-09 20:55:00 +0800
categories: [Blogging, Tutorial]
diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss
index a6dc878..fe96058 100644
--- a/_sass/layout/post.scss
+++ b/_sass/layout/post.scss
@@ -14,19 +14,28 @@
padding-right: $pr;
}
-h1 + .post-meta {
- span + span::before {
- @include dot;
+header {
+ .post-desc {
+ @extend %heading;
+
+ font-size: 1.125rem;
+ line-height: 1.6;
}
- em,
- time {
- @extend %text-highlight;
- }
+ .post-meta {
+ span + span::before {
+ @include dot;
+ }
- em {
- a {
- color: inherit;
+ em,
+ time {
+ @extend %text-highlight;
+ }
+
+ em {
+ a {
+ color: inherit;
+ }
}
}
}
diff --git a/assets/feed.xml b/assets/feed.xml
index a244a56..0ab20e3 100644
--- a/assets/feed.xml
+++ b/assets/feed.xml
@@ -45,14 +45,7 @@ permalink: /feed.xml
{% endfor %}
{% endif %}
- {% if post.summary %}
- {{ post.summary | strip }}
- {% else %}
-
- {% include no-linenos.html content=post.content %}
- {{ content | strip_html | truncate: 400 }}
-
- {% endif %}
+ {% include post-description.html max_length=400 %}
{% endfor %}