Skip to content

Commit bebbe79

Browse files
committed
Incorporate baseUrl into footer icon source paths #154
Reference: #154 Signed-off-by: johnmhoran <johnmhoran@gmail.com>
1 parent d14a822 commit bebbe79

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

website/docusaurus.config.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const siteConfig = {
3232
},
3333
};
3434

35+
// Define const for the footer icon paths.
36+
const currentBaseUrl = siteConfig[deployTarget].baseUrl
37+
3538
/** @type {import('@docusaurus/types').Config} */
3639
const config = {
3740
title: 'AboutCode.org',
@@ -147,27 +150,27 @@ const config = {
147150
style: 'dark',
148151
links: [
149152
{
150-
html: `<img src="/img/AboutCode.svg" alt="AboutCode.org" width="150"/>`,
153+
html: `<img src="${currentBaseUrl}img/AboutCode.svg" alt="AboutCode.org" width="150"/>`,
151154
},
152155

153156
{
154-
html: `<a href="https://github.com/aboutcode-org" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><img src="/img/github-mark-white.svg" alt="" width="20" height="20"></a>`,
157+
html: `<a href="https://github.com/aboutcode-org" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><img src="${currentBaseUrl}img/github-mark-white.svg" alt="" width="20" height="20"></a>`,
155158
},
156159

157160
{
158-
html: `<a href="https://www.linkedin.com/company/aboutcode/" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn"><img src="/img/brand-inlogo-download-fg-dsk-v01-2x.png" alt="" width="20" height="20"></a>`,
161+
html: `<a href="https://www.linkedin.com/company/aboutcode/" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn"><img src="${currentBaseUrl}img/brand-inlogo-download-fg-dsk-v01-2x.png" alt="" width="20" height="20"></a>`,
159162
},
160163

161164
{
162-
html: `<a href="https://join.slack.com/t/aboutcode-org/shared_invite/zt-1paqwxccw-IuafuiAvYJFkTqGaZsC1og" target="_blank" rel="noopener noreferrer" aria-label="Slack"><img src="/img/slack-logo.svg" alt="" width="20" height="20"></a>`,
165+
html: `<a href="https://join.slack.com/t/aboutcode-org/shared_invite/zt-1paqwxccw-IuafuiAvYJFkTqGaZsC1og" target="_blank" rel="noopener noreferrer" aria-label="Slack"><img src="${currentBaseUrl}img/slack-logo.svg" alt="" width="20" height="20"></a>`,
163166
},
164167

165168
{
166-
html: `<a href="https://app.gitter.im/#/room/#aboutcode-org_discuss:gitter.im" target="_blank" rel="noopener noreferrer" aria-label="Gitter"><img src="/img/gitter.svg" alt="" width="20" height="20"></a>`,
169+
html: `<a href="https://app.gitter.im/#/room/#aboutcode-org_discuss:gitter.im" target="_blank" rel="noopener noreferrer" aria-label="Gitter"><img src="${currentBaseUrl}img/gitter.svg" alt="" width="20" height="20"></a>`,
167170
},
168171

169172
{
170-
html: `<a href="mailto:hello@aboutcode.org" target="_blank" rel="noopener noreferrer" aria-label="Email"><img src="/img/email-svgrepo-com.svg" alt="" width="25" height="20"></a>`,
173+
html: `<a href="mailto:hello@aboutcode.org" target="_blank" rel="noopener noreferrer" aria-label="Email"><img src="${currentBaseUrl}img/email-svgrepo-com.svg" alt="" width="25" height="20"></a>`,
171174
},
172175

173176
{ label: 'Privacy Policy', to: '/privacy' },

0 commit comments

Comments
 (0)