Skip to content

Commit

Permalink
Fix author image
Browse files Browse the repository at this point in the history
  • Loading branch information
meganthecoder committed Sep 20, 2023
1 parent 1a6c028 commit 479d16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ async function buildArticleHeader(el) {
const tag = getMetadata('article:tag');
const category = tag || 'News';
const author = getMetadata('author') || 'Adobe Communications Team';
const { codeRoot } = getConfig();
const authorURL = getMetadata('author-url') || (author ? `${codeRoot}/authors/${author.replace(/[^0-9a-z]/gi, '-').toLowerCase()}` : null);
const { locale } = getConfig();
const authorURL = getMetadata('author-url') || (author ? `${locale.contentRoot}/authors/${author.replace(/[^0-9a-z]/gi, '-').toLowerCase()}` : null);
const publicationDate = getMetadata('publication-date');
const categoryTag = getLinkForTopic(category);
const articleHeaderBlockEl = buildBlock('article-header', [
Expand Down

0 comments on commit 479d16b

Please sign in to comment.