feat(seo): Phase 2 — route-level metadata service and JSON-LD structured data #6
@@ -323,8 +323,8 @@ export class SeoService {
|
||||
return;
|
||||
}
|
||||
const tag: Record<string, string> = { content };
|
||||
if (attrName === 'name') tag.name = attrValue;
|
||||
else if (attrName === 'property') tag.property = attrValue;
|
||||
if (attrName === 'name') tag['name'] = attrValue;
|
||||
else if (attrName === 'property') tag['property'] = attrValue;
|
||||
else if (attrName === 'http-equiv') tag['http-equiv'] = attrValue;
|
||||
this.metaService.updateTag(tag);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user