Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function createConfig() {
const rehypePlugins = [(await import('rehype-katex')).default];
return {
title: 'ImageJS',
tagline: 'Advanced image processing and manipulation in JavaScript.',
tagline: 'Advanced image processing in JavaScript.',
favicon: 'img/image-js-favicon.svg',

// Set the production url of your site here
Expand Down Expand Up @@ -117,8 +117,13 @@ async function createConfig() {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
image: '/img/image-js-social-card.png',
metadata: [
{ property: 'og:image:width', content: '1200' },
{ property: 'og:image:height', content: '630' },
{ name: 'twitter:image:width', content: '1200' },
{ name: 'twitter:image:height', content: '630' },
],
colorMode: {},
announcementBar: {
id: 'release-1.0',
Expand Down
14 changes: 9 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Head from '@docusaurus/Head';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
Expand All @@ -8,6 +9,7 @@ import styles from './index.module.css';

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();

return (
<header
id="frontPage"
Expand Down Expand Up @@ -43,12 +45,14 @@ function HomepageHeader() {
}

export default function Home() {
const { siteConfig } = useDocusaurusContext();
const title = 'Welcome to ImageJS';
return (
<Layout
title={`Welcome to ${siteConfig.title}`}
description="Description will go into a meta tag in <head />"
>
<Layout title={title}>
<Head>
<title>{title}</title>
<meta property="og:title" content={title} />
<meta name="twitter:title" content={title} />
</Head>
<main className="main-wrapper">
<HomepageHeader />
</main>
Expand Down
Binary file removed static/img/docusaurus-social-card.jpg
Binary file not shown.
Binary file removed static/img/docusaurus.png
Binary file not shown.
Binary file removed static/img/favicon.ico
Binary file not shown.
Binary file added static/img/image-js-social-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion static/img/logo.svg

This file was deleted.

Loading