Skip to content

Commit 8b5bbbc

Browse files
Merge pull request #341 from adobe/authorbox-on
chore: remove special case to suppress authorbox
2 parents 78bf2ae + 67b2a11 commit 8b5bbbc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

blocks/lede/lede.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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');

scripts/get-author-titles.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
export 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/'));

0 commit comments

Comments
 (0)