This is an automated email from the ASF dual-hosted git repository.
erose pushed a commit to branch HDDS-9225-website-v2
in repository https://gitbox.apache.org/repos/asf/ozone-site.git
The following commit(s) were added to refs/heads/HDDS-9225-website-v2 by this
push:
new f7c51f0c HDDS-10337. Fix social media preview. (#72)
f7c51f0c is described below
commit f7c51f0cf6366c7f1e75262c36bd0d189ef18224
Author: Ethan Rose <[email protected]>
AuthorDate: Thu Feb 8 15:25:23 2024 -0800
HDDS-10337. Fix social media preview. (#72)
---
docusaurus.config.js | 10 ++++++----
src/pages/index.js | 4 ++--
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index c0d32e0b..648ebfbc 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -8,11 +8,13 @@ const darkCodeTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Apache Ozone',
- tagline: 'Scalable, redundant, distributed storage system optimized for data
analytics and object store workloads',
+ tagline: 'Scalable, redundant, distributed storage system optimized for data
analytics and object store workloads.',
favicon: 'img/favicon/favicon.ico',
- // Set the production url of your site here
- url: 'https://ozone.apache.org',
+ // Set the production URL of the website. Must be updated when the final
site is deployed.
+ // This must match the URL the website is hosted at for social media
previews to work.
+ // If you are testing the social media image (themeConfig.image) locally,
set this to http://localhost:3000.
+ url: 'https://ozone-site-v2.staged.apache.org',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
@@ -20,9 +22,9 @@ const config = {
// Fail the build if there are any broken links.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
+ onBrokenAnchors: 'throw',
// Fail the build if multiple pages map to the same URL.
onDuplicateRoutes: 'throw',
- onBrokenAnchors: 'throw',
// Even if you don't use internalization, you can use this field to set
useful
// metadata like html lang. For example, if your site is Chinese, you may
want
diff --git a/src/pages/index.js b/src/pages/index.js
index 83fd295c..33ab53b5 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -8,8 +8,8 @@ export default function Home() {
const getStartedHref = `docs/quick-start/installation/docker`
return (
<Layout
- title={`Welcome to ${siteConfig.title}`}
- description="{siteConfig.tagline}">
+ title="Home"
+ description={`${siteConfig.tagline}`}>
<div class="hero">
<div class="container">
<div class="row" style={{alignItems: 'center'}}>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]