feat(v2): add 'custom_edit_url' and 'hide_title' markdown header feature (#1838)

* feat(v2): add 'custom_edit_url' and 'hide_title' markdown header feature

* nits
This commit is contained in:
Endi 2019-10-14 17:25:05 +07:00 committed by GitHub
parent 1dddb1f5ea
commit 94b0451fa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 62 additions and 4 deletions

View file

@ -103,6 +103,11 @@ export default async function processMetadata({
metadata.editUrl = normalizeUrl([editUrl, source]);
}
if (metadata.custom_edit_url) {
metadata.editUrl = metadata.custom_edit_url;
delete metadata.custom_edit_url;
}
if (showLastUpdateAuthor || showLastUpdateTime) {
// Use fake data in dev for faster development
const fileLastUpdateData =