fix(core): update

This commit is contained in:
Philipp Kunz 2020-11-05 17:15:27 +00:00
parent c0d223959d
commit 4f06c5d7c5
2 changed files with 5 additions and 1 deletions

View File

@ -63,6 +63,8 @@ export class JsonLdTag extends Tag {
},
"description": newsArticleArg.author.firstName
};
const ldTag = new JsonLdTag(newsArticleArg);
return ldTag;
}
constructor(ldObjectArg: any) {

View File

@ -52,7 +52,9 @@ export class TagLevel {
);
}
public addPostInfo() {}
public addNewsArticleInfo(articleArg: plugins.tsclass.content.IArticle) {
this.addTag(JsonLdTag.createNewsArticleLd(articleArg));
}
public async enable() {
if (this.title) {