Skip to content

Commit

Permalink
open-graph image and metadata added to website (#320)
Browse files Browse the repository at this point in the history
og image and metadata added
  • Loading branch information
barret-anspach authored Jan 8, 2025
1 parent 72f9558 commit 29956a3
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
53 changes: 51 additions & 2 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import MonacoEditorWebpackPlugin from "monaco-editor-webpack-plugin";

const title = "GROQD";
const tagline = "Typesafe GROQ Query Builder";

const config: Config = {
title: "GROQD",
tagline: "Typesafe GROQ Query Builder",
title,
tagline,
url: "https://commerce.nearform.com/",
favicon: "img/nearform-icon.svg",
baseUrl: process.env.VERCEL_ENV === "preview" ? "/" : "/open-source/groqd",
Expand Down Expand Up @@ -78,10 +81,56 @@ const config: Config = {
],
themeConfig: {
metadata: [
{
name: "title",
content: title,
},
{
name: "description",
content: tagline,
},
{
name: "viewport",
content: "width=device-width, initial-scale=1, maximum-scale=1",
},
{
property: "og:type",
content: "website",
},
{
property: "og:url",
content: "https://commerce.nearform.com/open-source/groqd/",
},
{
property: "og:title",
content: title,
},
{
property: "og:description",
content: tagline,
},
{
property: "og:image",
content:
"https://commerce.nearform.com/open-source/groqd/open-graph.png",
},
{
property: "twitter:card",
content: "summary_large_image",
},
{
property: "twitter:title",
content: title,
},
{
property: "twitter:description",
content: tagline,
},
{
property: "twitter:image",
content:
"https://commerce.nearform.com/open-source/groqd/open-graph.png",
},
],
docs: {
sidebar: {
Expand Down
Binary file added website/static/open-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 29956a3

Please sign in to comment.