fix(metadata): update package metadata and align company schema integration with latest tsclass types
This commit is contained in:
@@ -4,10 +4,10 @@ import { Tag } from './websetup.classes.tag.js';
|
||||
export class OpengraphTag extends Tag {
|
||||
public static createNewsArticleOgTags(newsArticleArg: plugins.tsclass.content.IArticle) {
|
||||
const tagArray: OpengraphTag[] = [];
|
||||
tagArray.push(new OpengraphTag('og:url', newsArticleArg.url));
|
||||
tagArray.push(new OpengraphTag('og:url', newsArticleArg.url ?? globalThis.location.href));
|
||||
tagArray.push(new OpengraphTag('og:title', newsArticleArg.title));
|
||||
tagArray.push(new OpengraphTag('og:description', newsArticleArg.content));
|
||||
tagArray.push(new OpengraphTag('og:image', newsArticleArg.featuredImageUrl));
|
||||
tagArray.push(new OpengraphTag('og:image', newsArticleArg.featuredImageUrl ?? ''));
|
||||
return tagArray;
|
||||
}
|
||||
|
||||
@@ -16,20 +16,20 @@ export class OpengraphTag extends Tag {
|
||||
tagArray.push(new OpengraphTag('og:type', 'product'));
|
||||
tagArray.push(new OpengraphTag('og:url', globalThis.location.href));
|
||||
tagArray.push(new OpengraphTag('og:title', `${productArg.name} - ${productArg.slogan}`));
|
||||
tagArray.push(new OpengraphTag('og:site_name', productArg.name))
|
||||
tagArray.push(new OpengraphTag('og:site_name', productArg.name));
|
||||
tagArray.push(new OpengraphTag('og:description', productArg.description));
|
||||
tagArray.push(new OpengraphTag('og:image', productArg.logoLink));
|
||||
return tagArray;
|
||||
}
|
||||
|
||||
public static createCompanyOgTags(companyArg: plugins.tsclass.business.ICompany) {
|
||||
public static createCompanyOgTags(companyArg: plugins.tsclass.business.TCompany) {
|
||||
const tagArray: OpengraphTag[] = [];
|
||||
tagArray.push(new OpengraphTag('og:type', 'company'));
|
||||
tagArray.push(new OpengraphTag('og:url', globalThis.location.href));
|
||||
tagArray.push(new OpengraphTag('og:title', `${companyArg.name} - ${companyArg.slogan}`));
|
||||
tagArray.push(new OpengraphTag('og:site_name', companyArg.name))
|
||||
tagArray.push(new OpengraphTag('og:title', companyArg.name));
|
||||
tagArray.push(new OpengraphTag('og:site_name', companyArg.name));
|
||||
tagArray.push(new OpengraphTag('og:description', companyArg.description));
|
||||
tagArray.push(new OpengraphTag('og:image', companyArg.logoLink));
|
||||
tagArray.push(new OpengraphTag('og:image', companyArg.logoUrl ?? ''));
|
||||
return tagArray;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user