Skip to content

Commit

Permalink
Temp fix for image URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Collins committed Dec 13, 2021
1 parent 9e364cc commit 3341dd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
9 changes: 2 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

const baseUrl = process.env.BASE_URL || "/";
const BASE_URL = process.env.BASE_URL || "/";

/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Fastify",
tagline: "Fast and low overhead web framework, for Node.js",
url: "https://fastify.io",
baseUrl: baseUrl,
baseUrl: BASE_URL,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
Expand Down Expand Up @@ -43,11 +43,6 @@ const config = {
},
},
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl: "https://github.com/fastify/website-next/edit/main/blog/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
Expand Down
25 changes: 3 additions & 22 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ import Layout from "@theme/Layout";
import React from "react";
import GitHubButton from "react-github-btn";

// function HomepageHeader() {
// const {siteConfig} = useDocusaurusContext();
// return (
// <header className={clsx('hero hero--primary', styles.heroBanner)}>
// <div className="container">
// <h1 className="hero__title">{siteConfig.title}</h1>
// <p className="hero__subtitle">{siteConfig.tagline}</p>
// <div className={styles.buttons}>
// <Link
// className="button button--secondary button--lg"
// to="/docs/intro">
// Docusaurus Tutorial - 5min ⏱️
// </Link>
// </div>
// </div>
// </header>
// );
// }

const svgicons = {
twitter: (
<svg
Expand Down Expand Up @@ -88,14 +69,14 @@ export default function Home(): JSX.Element {
<main>
<div
className="hero"
style={{ backgroundImage: "url(/img/bg-pattern-dark.png)" }}
style={{ backgroundImage: "url(/website-next/img/bg-pattern-dark.png)" }}
>
<div className="hero-body">
<div className="container">
<h1 className="title">
<img
className="logo"
src="/img/fastify-logo-white.png"
src="/website-next/img/fastify-logo-white.png"
alt="Fastify"
/>
</h1>
Expand Down Expand Up @@ -181,7 +162,7 @@ export default function Home(): JSX.Element {
rel="noopener nofollow"
>
<img
src={`/img/organisations/${organization.image}`}
src={`/website-next/img/organisations/${organization.image}`}
alt={`${organization.name} is using Fastify`}
/>
</a>
Expand Down

0 comments on commit 3341dd3

Please sign in to comment.