Skip to content

Commit 3341dd3

Browse files
author
Lachlan Collins
committed
Temp fix for image URLs
1 parent 9e364cc commit 3341dd3

File tree

2 files changed

+5
-29
lines changed

2 files changed

+5
-29
lines changed

docusaurus.config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
const lightCodeTheme = require("prism-react-renderer/themes/github");
55
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
66

7-
const baseUrl = process.env.BASE_URL || "/";
7+
const BASE_URL = process.env.BASE_URL || "/";
88

99
/** @type {import('@docusaurus/types').Config} */
1010
const config = {
1111
title: "Fastify",
1212
tagline: "Fast and low overhead web framework, for Node.js",
1313
url: "https://fastify.io",
14-
baseUrl: baseUrl,
14+
baseUrl: BASE_URL,
1515
onBrokenLinks: "throw",
1616
onBrokenMarkdownLinks: "warn",
1717
favicon: "img/favicon.ico",
@@ -43,11 +43,6 @@ const config = {
4343
},
4444
},
4545
},
46-
blog: {
47-
showReadingTime: true,
48-
// Please change this to your repo.
49-
editUrl: "https://github.com/fastify/website-next/edit/main/blog/",
50-
},
5146
theme: {
5247
customCss: require.resolve("./src/css/custom.css"),
5348
},

src/pages/index.tsx

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,6 @@ import Layout from "@theme/Layout";
66
import React from "react";
77
import GitHubButton from "react-github-btn";
88

9-
// function HomepageHeader() {
10-
// const {siteConfig} = useDocusaurusContext();
11-
// return (
12-
// <header className={clsx('hero hero--primary', styles.heroBanner)}>
13-
// <div className="container">
14-
// <h1 className="hero__title">{siteConfig.title}</h1>
15-
// <p className="hero__subtitle">{siteConfig.tagline}</p>
16-
// <div className={styles.buttons}>
17-
// <Link
18-
// className="button button--secondary button--lg"
19-
// to="/docs/intro">
20-
// Docusaurus Tutorial - 5min ⏱️
21-
// </Link>
22-
// </div>
23-
// </div>
24-
// </header>
25-
// );
26-
// }
27-
289
const svgicons = {
2910
twitter: (
3011
<svg
@@ -88,14 +69,14 @@ export default function Home(): JSX.Element {
8869
<main>
8970
<div
9071
className="hero"
91-
style={{ backgroundImage: "url(/img/bg-pattern-dark.png)" }}
72+
style={{ backgroundImage: "url(/website-next/img/bg-pattern-dark.png)" }}
9273
>
9374
<div className="hero-body">
9475
<div className="container">
9576
<h1 className="title">
9677
<img
9778
className="logo"
98-
src="/img/fastify-logo-white.png"
79+
src="/website-next/img/fastify-logo-white.png"
9980
alt="Fastify"
10081
/>
10182
</h1>
@@ -181,7 +162,7 @@ export default function Home(): JSX.Element {
181162
rel="noopener nofollow"
182163
>
183164
<img
184-
src={`/img/organisations/${organization.image}`}
165+
src={`/website-next/img/organisations/${organization.image}`}
185166
alt={`${organization.name} is using Fastify`}
186167
/>
187168
</a>

0 commit comments

Comments
 (0)