You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ji...@apache.org on 2026/03/27 03:04:21 UTC
(mahout) branch main updated: [Fix] Website main page image (#1223)
This is an automated email from the ASF dual-hosted git repository.
jiekaichang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git
The following commit(s) were added to refs/heads/main by this push:
new 8c37fad11 [Fix] Website main page image (#1223)
8c37fad11 is described below
commit 8c37fad118416cd0ea9d5f08f21dda08d6b32358
Author: Jie-Kai Chang <ji...@apache.org>
AuthorDate: Fri Mar 27 11:04:15 2026 +0800
[Fix] Website main page image (#1223)
Signed-off-by: 400Ping <ji...@apache.org>
---
website/docusaurus.config.ts | 4 +--
website/src/pages/index.tsx | 66 ++++++++++++++++++++++++++++++++++
website/static/img/mahout-favicon.png | Bin 0 -> 37961 bytes
3 files changed, 68 insertions(+), 2 deletions(-)
diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index 9a296b39b..2fc2063c4 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -7,7 +7,7 @@ import rehypeKatex from 'rehype-katex';
const config: Config = {
title: 'Apache Mahout',
tagline: 'Distributed Linear Algebra & Quantum Computing',
- favicon: 'img/mahout-favicon.svg',
+ favicon: 'img/mahout-favicon.png',
future: {
v4: true,
@@ -121,7 +121,7 @@ const config: Config = {
],
themeConfig: {
- image: 'img/mahout-social-card.svg',
+ image: 'img/mascot_with_text.png',
colorMode: {
defaultMode: 'light',
respectPrefersColorScheme: true,
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index 3c72c7753..2a37cdf83 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -1,4 +1,5 @@
import type {ReactNode} from 'react';
+import Head from '@docusaurus/Head';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
@@ -7,6 +8,50 @@ import WaveAnimation from '@site/src/components/WaveAnimation';
import styles from './index.module.css';
+const siteUrl = 'https://mahout.apache.org';
+const pageTitle = 'Apache Mahout';
+const pageDescription =
+ 'Apache Mahout builds an environment for quickly creating scalable, performant machine learning applications.';
+const logoUrl = `${siteUrl}/img/mahout-favicon.png`;
+const socialImageUrl = `${siteUrl}/img/mascot_with_text.png`;
+
+const organizationJsonLd = {
+ '@context': 'https://schema.org',
+ '@type': 'Organization',
+ name: 'Apache Mahout',
+ url: siteUrl,
+ logo: {
+ '@type': 'ImageObject',
+ url: logoUrl,
+ width: 512,
+ height: 512,
+ },
+ image: socialImageUrl,
+ sameAs: [
+ 'https://github.com/apache/mahout',
+ 'https://www.apache.org/',
+ ],
+};
+
+const websiteJsonLd = {
+ '@context': 'https://schema.org',
+ '@type': 'WebSite',
+ name: 'Apache Mahout',
+ url: siteUrl,
+ inLanguage: 'en',
+ publisher: {
+ '@type': 'Organization',
+ name: 'Apache Mahout',
+ url: siteUrl,
+ logo: {
+ '@type': 'ImageObject',
+ url: logoUrl,
+ width: 512,
+ height: 512,
+ },
+ },
+};
+
function HomepageHeader() {
return (
<header className={styles.heroBanner}>
@@ -164,6 +209,27 @@ export default function Home(): ReactNode {
<Layout
title="Home"
description="Apache Mahout - Distributed Linear Algebra and Quantum Computing for Machine Learning">
+ <Head>
+ <meta property="og:title" content={pageTitle} />
+ <meta property="og:description" content={pageDescription} />
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content={siteUrl} />
+ <meta property="og:image" content={socialImageUrl} />
+ <meta property="og:image:alt" content="Apache Mahout Qumat mascot and logo" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:title" content={pageTitle} />
+ <meta name="twitter:description" content={pageDescription} />
+ <meta name="twitter:image" content={socialImageUrl} />
+ <meta name="application-name" content={siteConfig.title} />
+ <link rel="icon" href={logoUrl} sizes="512x512" type="image/png" />
+ <link rel="apple-touch-icon" href={logoUrl} />
+ <script type="application/ld+json">
+ {JSON.stringify(organizationJsonLd)}
+ </script>
+ <script type="application/ld+json">
+ {JSON.stringify(websiteJsonLd)}
+ </script>
+ </Head>
<HomepageHeader />
<main className={styles.mainSection}>
<div className="container">
diff --git a/website/static/img/mahout-favicon.png b/website/static/img/mahout-favicon.png
new file mode 100644
index 000000000..3b36a5595
Binary files /dev/null and b/website/static/img/mahout-favicon.png differ