Skip to content

Commit

Permalink
feat: Remove some redundant fields in the SEO field creation code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobefu committed Dec 27, 2024
1 parent 1e30742 commit 67f2328
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions cmd/cs_sdk/api/create-or-update-seo-global-field.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ func getSeoGlobalFieldBody() map[string]interface{} {
"_default": true,
"instruction": "The page title that will be displayed in the browser tab.",
},
"unique": false,
"mandatory": false,
"multiple": false,
},
{
"display_name": "Description",
Expand All @@ -49,16 +46,12 @@ func getSeoGlobalFieldBody() map[string]interface{} {
"instruction": "A short description that search engines will see. For the best results, please keep the description between 150 to 160 characters in length.",
"multiline": true,
},
"unique": false,
"mandatory": false,
"multiple": false,
},
{
"display_name": "OG Title",
"uid": "og_title",
"data_type": "text",
"field_metadata": map[string]interface{}{
"_default": true,
"instruction": "The page title that will be displayed when sharing the page to social media. For the best results, please keep the title between 55 to 60 characters in length.",
},
"unique": false,
Expand All @@ -73,9 +66,6 @@ func getSeoGlobalFieldBody() map[string]interface{} {
"instruction": "A short description that will be displayed when sharing the page to social media. For the best results, please keep the description between 150 to 160 characters in length.",
"multiline": true,
},
"unique": false,
"mandatory": false,
"multiple": false,
},
{
"display_name": "Exclude from the sitemap",
Expand All @@ -85,9 +75,6 @@ func getSeoGlobalFieldBody() map[string]interface{} {
"instruction": "Whether or not to exclude this page from the sitemap. When checked, the page will not show up in the sitemap.",
"default_value": false,
},
"unique": false,
"mandatory": false,
"multiple": false,
},
},
},
Expand Down

0 comments on commit 67f2328

Please sign in to comment.