Update website and send total=-1 when no content-type

This commit is contained in:
Jerome Wu
2022-10-05 17:51:09 +08:00
parent c9f20b8dc2
commit b8314a96e3
26 changed files with 193 additions and 66 deletions

View File

@@ -4,6 +4,7 @@ import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import HomepageFeatures from "@site/src/components/HomepageFeatures";
import ExternalLibraries from "@site/src/components/ExternalLibraries";
import styles from "./index.module.css";
@@ -31,12 +32,13 @@ export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />"
title={`${siteConfig.title}`}
description="ffmpeg.wasm is a pure WebAssembly / JavaScript port of FFmpeg"
>
<HomepageHeader />
<main>
<HomepageFeatures />
<ExternalLibraries />
</main>
</Layout>
);

View File

@@ -1,7 +0,0 @@
---
title: Markdown page example
---
# Markdown page example
You don't need React to write simple standalone pages.

View File

@@ -0,0 +1,8 @@
import Playground from "@site/src/components/Playground";
# Playground
Hi! Welcome to ffmpeg.wasm playground! Here you can try and test ffmpeg.wasm
with ease. :smile:
<Playground />