Skip to content

Commit

Permalink
Fix base url misbehaving, anchor links will now work
Browse files Browse the repository at this point in the history
  • Loading branch information
GingerGeek committed Dec 17, 2024
1 parent 2ea61b5 commit 6dd6e9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,30 +262,30 @@ const config: Config = {
tagName: 'link',
attributes: {
rel: 'icon',
href: 'favicon.ico',
href: deployPath + 'favicon.ico',
sizes: "32x32"
}
},
{
tagName: 'link',
attributes: {
rel: 'icon',
href: 'img/brand/logo/o-icon.svg',
href: deployPath + 'img/brand/logo/o-icon.svg',
type: "image/svg+xml"
}
},
{
tagName: 'link',
attributes: {
rel: 'apple-touch-icon',
href: 'img/brand/solid-icon-180x',
href: deployPath + 'img/brand/solid-icon-180x',
}
},
{
tagName: 'link',
attributes: {
rel: 'manifest',
href: 'manifest.json',
href: deployPath + 'manifest.json',
}
},
]
Expand Down
3 changes: 2 additions & 1 deletion src/components/HomepageSoWhatIsOKD/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import clsx from 'clsx';
import styles from './styles.module.scss';
import useBaseUrl from '@docusaurus/useBaseUrl';

export default function HomepageSoWhatIsOKD(): JSX.Element {
return (
<div className={clsx("container", "padding-top--lg", styles.whatIsContainer)}>
<div className="row">
<div className={clsx("col", "col--4", styles.centerArt)}>
<img style={{padding: "40px"}} src="img/brand/mascot/mascot_laptop_plugged.svg" />
<img style={{padding: "40px"}} src={useBaseUrl("img/brand/mascot/mascot_laptop_plugged.svg")} />
</div>
<div className="col col--8">
<h2>So what does that mean exactly?</h2>
Expand Down
4 changes: 2 additions & 2 deletions static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"short_name": "OKD",
"name": "OKD Kubernetes Platform",
"icons": [
{ "src": "img/brand/solid-icon-192x.png", "type": "image/png", "sizes": "192x192" },
{ "src": "img/brand/solid-icon-512x.png", "type": "image/png", "sizes": "512x512" }
{ "src": "/img/brand/solid-icon-192x.png", "type": "image/png", "sizes": "192x192" },
{ "src": "/img/brand/solid-icon-512x.png", "type": "image/png", "sizes": "512x512" }
],
"id": "./?source=pwa",
"start_url": "./?source=pwa",
Expand Down

0 comments on commit 6dd6e9b

Please sign in to comment.