Disable social card for submissions
@@ -273,10 +273,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
});
result.data.backend.submissions.forEach(({ id }) => {
- createPageWithSocialCards(
- createPage,
- submissionSocialTemplate,
- {
+ createPage({
component: submissionTemplate,
path: `/en/submission/${id}`,
context: {
@@ -287,15 +284,9 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
it: `/it/submission/${id}`,
},
},
- },
- false,
- ["social-twitter"],
- );
+ });
- createPageWithSocialCards(
- createPage,
- submissionSocialTemplate,
- {
+ createPageWithSocialCards({
component: submissionTemplate,
path: `/it/submission/${id}`,
context: {
@@ -306,9 +297,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
it: `/it/submission/${id}`,
},
},
- },
- ["social-twitter"],
- );
+ });
});
// generic social card
