File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed
Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -512,38 +512,6 @@ const createFilteredPagesLoader = (
512512 `✓ Fetched insight-journal-metadata.json for ${ insightJournalId } `
513513 ) ;
514514
515- // Merge tags into keywords
516- if ( metadataJson . tags && Array . isArray ( metadataJson . tags ) ) {
517- // Initialize keywords array if it doesn't exist
518- if ( ! pageData . frontmatter ) {
519- pageData . frontmatter = { } ;
520- }
521- if ( ! Array . isArray ( pageData . frontmatter . keywords ) ) {
522- pageData . frontmatter . keywords = [ ] ;
523- }
524-
525- // Add tags to keywords if not already present
526- const existingKeywords = new Set (
527- pageData . frontmatter . keywords . map ( ( k : string ) =>
528- k . toLowerCase ( )
529- )
530- ) ;
531-
532- for ( const tag of metadataJson . tags ) {
533- if (
534- typeof tag === "string" &&
535- ! existingKeywords . has ( tag . toLowerCase ( ) )
536- ) {
537- pageData . frontmatter . keywords . push ( tag ) ;
538- existingKeywords . add ( tag . toLowerCase ( ) ) ;
539- }
540- }
541-
542- console . log (
543- `✓ Added ${ metadataJson . tags . length } tags to keywords (now ${ pageData . frontmatter . keywords . length } total)`
544- ) ;
545- }
546-
547515 // Set github property from source_code_git_repo if it contains "github.com"
548516 if (
549517 metadataJson . source_code_git_repo &&
You can’t perform that action at this time.
0 commit comments