Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update other references of media count to 700 million (#1100)

Krystle Salazar11d7b8b1b627
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index b89af2b8e..06a5cf534 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -4,6 +4,7 @@ import fs from "fs"
import pkg from "./package.json"
import locales from "./src/locales/scripts/valid-locales.json"
+import { meta } from "./src/constants/meta"
import { VIEWPORTS } from "./src/constants/screens"
import { isProd } from "./src/utils/node-env"
@@ -16,51 +17,6 @@ import type { NuxtConfig } from "@nuxt/types"
import type { LocaleObject } from "@nuxtjs/i18n"
import type { IncomingMessage, NextFunction } from "connect"
-/**
- * The default metadata for the site. Can be extended and/or overwritten per page. And even in components!
- * See the Nuxt.js docs for more info.
- * {@link https://nuxtjs.org/guides/features/meta-tags-seo} Nuxt.js Docs
- */
-const meta = [
- { charset: "utf-8" },
- {
- name: "viewport",
- content: "width=device-width,initial-scale=1",
- },
- // By default, tell all robots not to index pages. Will be overwritten in the
- // search, content and home pages.
- { hid: "robots", name: "robots", content: "noindex" },
- {
- vmid: "monetization",
- name: "monetization",
- content: "$ilp.uphold.com/edR8erBDbRyq",
- },
- {
- hid: "theme-color",
- name: "theme-color",
- content: "#ffffff",
- },
- {
- name: "description",
- content:
- "Search over 700 million free and openly licensed images, photos, audio, and other media types for reuse and remixing.",
- },
- { hid: "og:title", name: "og:title", content: "Openverse" },
- {
- hid: "og:image",
- name: "og:image",
- content: "/openverse-default.jpg",
- },
- {
- hid: "og:description",
- name: "og:description",
- content:
- "Search over 700 million free and openly licensed images, photos, audio, and other media types for reuse and remixing.",
- },
- { name: "twitter:card", content: "summary_large_image" },
- { name: "twitter:site", content: "@WPOpenverse" },
-]
-
if (process.env.NODE_ENV === "production") {
meta.push({
// @ts-expect-error: 'http-equiv' isn't allowed here by Nuxt
diff --git a/frontend/src/constants/meta.ts b/frontend/src/constants/meta.ts
new file mode 100644
index 000000000..ed55f6c06
--- /dev/null
+++ b/frontend/src/constants/meta.ts
@@ -0,0 +1,45 @@
+const NUMBER_OF_RECORDS = "700 million"
+const DESCRIPTION = `Search over ${NUMBER_OF_RECORDS} free and openly licensed images, photos, audio, and other media types for reuse and remixing.`
+
+/**
+ * The default metadata for the site. Can be extended and/or overwritten per page. And even in components!
+ * See the Nuxt.js docs for more info.
+ * {@link https://nuxtjs.org/guides/features/meta-tags-seo} Nuxt.js Docs
+ */
+export const meta = [
+ { charset: "utf-8" },
+ {
+ name: "viewport",
+ content: "width=device-width,initial-scale=1",
+ },
+ // By default, tell all robots not to index pages. Will be overwritten in the
+ // search, content and home pages.
+ { hid: "robots", name: "robots", content: "noindex" },
+ {
+ vmid: "monetization",
+ name: "monetization",
+ content: "$ilp.uphold.com/edR8erBDbRyq",
+ },
+ {
+ hid: "theme-color",
+ name: "theme-color",
+ content: "#ffffff",
+ },
+ {
+ name: "description",
+ content: DESCRIPTION,
+ },
+ { hid: "og:title", name: "og:title", content: "Openverse" },
+ {
+ hid: "og:image",
+ name: "og:image",
+ content: "/openverse-default.jpg",
+ },
+ {
+ hid: "og:description",
+ name: "og:description",
+ content: DESCRIPTION,
+ },
+ { name: "twitter:card", content: "summary_large_image" },
+ { name: "twitter:site", content: "@WPOpenverse" },
+]