File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -97,12 +97,10 @@ export default async function decorate(block) {
9797 ` ;
9898 } ) ;
9999
100- // only create & decorate "author details" block if the author IS NOT 'adobe design'
100+ // only create & decorate "author details" block if there is an author
101101 const authorDetailsName = getMetadata ( 'author' ) ;
102102 if (
103103 authorDetailsName !== null
104- && authorDetailsName . toLowerCase ( ) !== 'adobe design team'
105- && authorDetailsName . toLowerCase ( ) !== 'adobe design'
106104 ) {
107105 const articleDetailsBlock = document . createElement ( 'div' ) ;
108106 articleDetailsBlock . classList . add ( 'cmp-author-details' ) ;
Original file line number Diff line number Diff line change 11export default async function getAuthorTitles ( row ) {
22 if ( row . author . indexOf ( ',' ) !== - 1 ) {
33 const authorNames = row . author . split ( ', ' ) ;
4+ const file = '/query-index.json?sheet=jobs&sheet=stories&sheet=toolkit&sheet=sitemap' ;
5+ /*
46 const file = window.location.host === (
57 'adobe.design'
68 || 'main--design-website--adobe.hlx.page'
79 || 'main--design-website--adobe.hlx.live'
810 ) ? '/query-index.json?sheet=jobs&sheet=stories&sheet=toolkit&sheet=sitemap'
911 : '/query-dev.json?sheet=jobs&sheet=stories&sheet=toolkit&sheet=sitemap';
12+ */
1013 const resp = await fetch ( file ) ;
1114 const json = await resp . json ( ) ;
1215 const authorData = json . sitemap . data . filter ( ( e ) => e . path . startsWith ( '/authors/' ) ) ;
You can’t perform that action at this time.
0 commit comments