Skip to content

Commit

Permalink
fix: schema.org metadata per i servizi
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Dec 12, 2023
1 parent 55f9512 commit ee21c7d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ const ServizioMetatag = ({ content }) => {
if (richTextHasContent(content.a_chi_si_rivolge)) {
schemaOrg.audience = {
'@type': 'Audience',
name: fieldDataToPlainText(content.a_chi_si_rivolge),
audienceType: fieldDataToPlainText(content.a_chi_si_rivolge),
};
}

if (content.canale_digitale_link) {
schemaOrg.availableChannel.serviceUrl = toPublicURL(
content.canale_digitale_link,
);
} else {
schemaOrg.availableChannel.serviceUrl = '';
}

if (content.ufficio_responsabile[0]) {
Expand Down

0 comments on commit ee21c7d

Please sign in to comment.