MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / structuredDataMarkup

Method structuredDataMarkup

helpers/config-node.js:368–383  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366
367
368 get structuredDataMarkup () {
369 // console.log( 'this.routeType', this.routeType, this.pathname )
370
371 const hasStructuredData = this.structuredData !== null
372 // Route is primarily for video
373 const videoRouteType = [ 'tv', 'benchmarks' ].includes( this.routeType )
374
375 if ( hasStructuredData && videoRouteType ) {
376 const structuredDataJson = JSON.stringify( this.structuredData )
377
378 return `<script type="application/ld+json">${ structuredDataJson }</script>`
379 }
380
381
382 return ''
383 }
384
385 get allHeadMarkup () {
386 return [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected