feat(v2): meta description (#1447)

* feat(v2): meta description

* add description for blog as well

* fix non-descriptive text link

* remove font awesome

* switch front-matter -> gray-matter
This commit is contained in:
Endi 2019-05-10 22:37:56 +07:00 committed by GitHub
parent 34195e4c30
commit 6136fbe1d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 82 additions and 58 deletions

View file

@ -75,7 +75,7 @@ class DocusaurusPluginContentBlog {
);
const fileString = await fs.readFile(source, 'utf-8');
const {metadata: rawMetadata} = parse(fileString);
const {metadata: rawMetadata, excerpt: description} = parse(fileString);
const metadata = {
permalink: normalizeUrl([
@ -84,6 +84,7 @@ class DocusaurusPluginContentBlog {
fileToUrl(blogFileName),
]),
source,
description,
...rawMetadata,
date,
};