fix(core): update

This commit is contained in:
Philipp Kunz 2020-12-07 05:06:30 +00:00
parent 2159995342
commit 6b9ebcec7a
4 changed files with 14 additions and 4 deletions

View File

@ -43,4 +43,4 @@
"browserslist": [
"last 1 chrome versions"
]
}
}

View File

@ -3,8 +3,18 @@ import * as plugins from '../websetup.plugins';
export interface IMetaObject {
title: string;
description?: string;
twitterHandle?: string;
canonicalDomain?: string;
ldCompany?: plugins.tsclass.business.ICompany;
ldProduct?: any;
// handles
twitterHandle?: string;
facebookhandle?: string;
// links
companyWebsiteLink?: string;
googleNewsLink?: string;
mediumLink?: string;
slackLink?: string;
airmeetLink?: string;
}

View File

@ -2,7 +2,7 @@ import * as plugins from './websetup.plugins';
import { Tag } from './websetup.classes.tag';
export class OpengraphTag extends Tag {
public static createNewsArticleOgTags (newsArticleArg: plugins.tsclass.content.IArticle) {
public static createNewsArticleOgTags(newsArticleArg: plugins.tsclass.content.IArticle) {
const tagArray: OpengraphTag[] = [];
tagArray.push(new OpengraphTag('og:url', newsArticleArg.url));
tagArray.push(new OpengraphTag('og:title', newsArticleArg.title));

View File

@ -16,7 +16,7 @@ export class TagManager {
// global tag level
this.globalLevel.addTag(new MetaTag('google', 'notranslate'));
this.globalLevel.addTag(new MetaTag('revisit-after', '1 days'));
if (metaObjectArg.twitterHandle) {
this.globalLevel.addTag(new MetaTag('twitter:card', 'summary_large_image'));
this.globalLevel.addTag(new MetaTag('twitter:site', metaObjectArg.twitterHandle));