Skip to content

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

Basic SEO Meta Fixes (#806)

Zack Krida9ad0c460cb93
diff --git a/nuxt.config.js b/nuxt.config.js
index a5d9b5a50..6047105af 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -12,32 +12,9 @@ import { sentry } from './src/utils/sentry-config'
*/
const meta = [
{ charset: 'utf-8' },
- {
- name: 'description',
- content:
- 'A new Openverse search tool for creators seeking to discover and reuse free resources with greater ease.',
- },
{ name: 'viewport', content: 'width=device-width,initial-scale=1' },
- { name: 'twitter:card', content: 'summary_large_image' },
- { name: 'twitter:site', content: '@creativecommons' },
- { name: 'og:title', content: 'Openverse' },
- {
- name: 'og:image',
- content: '/cclogo-shared-image.jpg',
- },
- {
- name: 'og:description',
- content:
- 'Empowering the world to share through 6 simple licenses + a global community of advocates for open.',
- },
- {
- name: 'og:url',
- content: 'https://creativecommons.org',
- },
- {
- name: 'og:site_name',
- content: 'Creative Search',
- },
+ // Tells Google to only crawl Openverse when iframed
+ { hid: 'googlebot', name: 'googlebot', content: 'noindex,indexifembedded' },
{
vmid: 'monetization',
name: 'monetization',
@@ -48,6 +25,25 @@ const meta = [
name: 'theme-color',
content: '#ffffff',
},
+ {
+ name: 'description',
+ content:
+ 'Search over 600 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 600 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') {
@@ -57,11 +53,31 @@ if (process.env.NODE_ENV === 'production') {
})
}
+const favicons = [
+ // SVG favicon
+ {
+ rel: 'icon',
+ href: '/openverse-logo.svg',
+ },
+ // SVG favicon for Safari
+ {
+ rel: 'mask-icon',
+ href: '/opvenverse-logo.svg',
+ color: '#30272E',
+ },
+ // Fallback iPhone Icon
+ {
+ rel: 'apple-touch-icon',
+ href: '/openverse-logo-180.png',
+ },
+]
+
// Default html head
const head = {
- title: 'Openverse',
+ title: 'Openly Licensed Images, Audio and More | Openverse',
meta,
link: [
+ ...favicons,
{
rel: 'preconnect',
href: env.apiUrl,
@@ -77,24 +93,6 @@ const head = {
title: 'Openverse',
href: '/opensearch.xml',
},
- {
- rel: 'icon',
- type: 'image/png',
- href: '/app-icons/cc-site-icon-150x150.png',
- sizes: '32x32',
- },
- {
- rel: 'icon',
- type: 'image/png',
- href: '/app-icons/cc-site-icon-300x300.png',
- sizes: '192x192',
- },
- {
- rel: 'apple-touch-icon-precomposed',
- type: 'image/png',
- href: '/app-icons/cc-site-icon-300x300.png',
- sizes: '192x192',
- },
],
}
diff --git a/src/pages/about.vue b/src/pages/about.vue
index 9a4cd2ad1..c7d2b6c61 100644
--- a/src/pages/about.vue
+++ b/src/pages/about.vue
@@ -100,7 +100,7 @@ const AboutPage = {
name: 'about-page',
head() {
return {
- title: `${this.$t('about.title')} - ${this.$t('hero.brand')}`,
+ title: `${this.$t('about.title')} | ${this.$t('hero.brand')}`,
}
},
}
diff --git a/src/pages/audio/_id.vue b/src/pages/audio/_id.vue
index b822837f9..1160d3849 100644
--- a/src/pages/audio/_id.vue
+++ b/src/pages/audio/_id.vue
@@ -90,7 +90,14 @@ const AudioDetailPage = {
head() {
const title = this.audio.title
return {
- title: `${title} - ${this.$t('hero.brand')}`,
+ title: `${title} | ${this.$t('hero.brand')}`,
+ meta: [
+ {
+ hid: 'robots',
+ name: 'robots',
+ content: 'noindex',
+ },
+ ],
}
},
}
diff --git a/src/pages/extension.vue b/src/pages/extension.vue
index 6d142b0f3..f8e111267 100644
--- a/src/pages/extension.vue
+++ b/src/pages/extension.vue
@@ -88,7 +88,7 @@ const AboutPage = {
},
head() {
return {
- title: `${this.$t('extension.title')} - ${this.$t('hero.brand')}`,
+ title: `${this.$t('extension.title')} | ${this.$t('hero.brand')}`,
}
},
methods: {
diff --git a/src/pages/feedback.vue b/src/pages/feedback.vue
index 9afd468f2..0a514552e 100644
--- a/src/pages/feedback.vue
+++ b/src/pages/feedback.vue
@@ -83,7 +83,7 @@ export const FeedbackPage = {
},
head() {
return {
- title: `${this.$t('feedback.title')} - ${this.$t('hero.brand')}`,
+ title: `${this.$t('feedback.title')} | ${this.$t('hero.brand')}`,
}
},
methods: {
diff --git a/src/pages/image/_id.vue b/src/pages/image/_id.vue
index 2308599a3..cecc1594a 100644
--- a/src/pages/image/_id.vue
+++ b/src/pages/image/_id.vue
@@ -193,9 +193,29 @@ const VImageDetailsPage = {
},
},
head() {
- const title = this.image.title
+ const title = `${this.image.title} | Reusable Image on ${this.$t(
+ 'hero.brand'
+ )}`
+
return {
- title: `${title} - ${this.$t('hero.brand')}`,
+ title,
+ meta: [
+ {
+ hid: 'robots',
+ name: 'robots',
+ content: 'noindex',
+ },
+ {
+ hid: 'og:title',
+ name: 'og:title',
+ content: title,
+ },
+ {
+ hid: 'og:image',
+ name: 'og:image',
+ content: this.image.foreign_landing_url,
+ },
+ ],
}
},
}
diff --git a/src/pages/meta-search.vue b/src/pages/meta-search.vue
index 82091ee16..d69bab5a4 100644
--- a/src/pages/meta-search.vue
+++ b/src/pages/meta-search.vue
@@ -120,7 +120,7 @@ export default {
name: 'MetaSearchPage',
head() {
return {
- title: `${this.$t('meta-search-page.title')} - ${this.$t('hero.brand')}`,
+ title: `${this.$t('meta-search-page.title')} | ${this.$t('hero.brand')}`,
}
},
}
diff --git a/src/pages/search-help.vue b/src/pages/search-help.vue
index 5b3ebccb3..6351674b5 100644
--- a/src/pages/search-help.vue
+++ b/src/pages/search-help.vue
@@ -262,7 +262,7 @@ const SearchHelpPage = {
},
head() {
return {
- title: `${this.$t('search-guide.title')} - ${this.$t('hero.brand')}`,
+ title: `${this.$t('search-guide.title')} | ${this.$t('hero.brand')}`,
}
},
}
diff --git a/src/pages/search/index.vue b/src/pages/search/index.vue
index d67bb187c..34d4c2953 100644
--- a/src/pages/search/index.vue
+++ b/src/pages/search/index.vue
@@ -23,12 +23,20 @@ const SearchIndex = defineComponent({
const { i18n } = useContext()
const query = computed(() => store.state.search.query.q)
- useMeta({ title: `${query.value} - ${i18n.t('hero.brand')}` })
+ useMeta({ title: `${query.value} | ${i18n.t('hero.brand')}` })
const { canLoadMore, onLoadMore } = useLoadMore(props)
return { canLoadMore, onLoadMore }
},
- head: {},
+ head: {
+ meta: [
+ {
+ hid: 'robots',
+ name: 'robots',
+ content: 'noindex',
+ },
+ ],
+ },
})
export default SearchIndex
</script>
diff --git a/src/pages/sources.vue b/src/pages/sources.vue
index 1471c9041..afe955e34 100644
--- a/src/pages/sources.vue
+++ b/src/pages/sources.vue
@@ -182,7 +182,7 @@ const SourcePage = {
},
head() {
return {
- title: `${this.$t('sources.title')} - ${this.$t('hero.brand')}`,
+ title: `${this.$t('sources.title')} | ${this.$t('hero.brand')}`,
}
},
}
diff --git a/src/static/.gitkeep b/src/static/.gitkeep
deleted file mode 100644
index e69de29bb..000000000
diff --git a/src/static/app-icons/cc-site-icon-150x150.png b/src/static/app-icons/cc-site-icon-150x150.png
deleted file mode 100644
index 64ec9acce..000000000
Binary files a/src/static/app-icons/cc-site-icon-150x150.png and /dev/null differ
diff --git a/src/static/app-icons/cc-site-icon-300x300.png b/src/static/app-icons/cc-site-icon-300x300.png
deleted file mode 100644
index d1fc47b6b..000000000
Binary files a/src/static/app-icons/cc-site-icon-300x300.png and /dev/null differ
diff --git a/src/static/cclogo-shared-image.jpg b/src/static/cclogo-shared-image.jpg
deleted file mode 100644
index b8cb619e9..000000000
Binary files a/src/static/cclogo-shared-image.jpg and /dev/null differ
diff --git a/src/static/favicon.ico b/src/static/favicon.ico
new file mode 100644
index 000000000..7d386b90c
Binary files /dev/null and b/src/static/favicon.ico differ
diff --git a/src/static/opensearch.xml b/src/static/opensearch.xml
index abffa3f40..a17a2bc54 100644
--- a/src/static/opensearch.xml
+++ b/src/static/opensearch.xml
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
-<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
- xmlns:moz="http://www.mozilla.org/2006/browser/search/">
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Openverse</ShortName>
- <Description>Openverse search tool</Description>
+ <Description>Search +600 million openly licensed images, audio files, and other media.</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image height="16" width="16" type="image/x-icon">
- "https://ccsearch.creativecommons.org/static/img/cc-icon_large.png"
+ "https://search.openverse/engineering/openverse-logo-180.png"
</Image>
- <Url type="text/html"
- template="https://ccsearch.creativecommons.org/search?q={searchTerms}"/>
+ <Url type="text/html" template="https://wordpress.org/openverse/search?q={searchTerms}"/>
</OpenSearchDescription>
diff --git a/src/static/openverse-default.jpg b/src/static/openverse-default.jpg
new file mode 100644
index 000000000..3403a7fad
Binary files /dev/null and b/src/static/openverse-default.jpg differ
diff --git a/src/static/openverse-logo-180.png b/src/static/openverse-logo-180.png
new file mode 100644
index 000000000..8ec35f5cc
Binary files /dev/null and b/src/static/openverse-logo-180.png differ
diff --git a/src/static/openverse-logo.svg b/src/static/openverse-logo.svg
new file mode 100644
index 000000000..70c7b6457
--- /dev/null
+++ b/src/static/openverse-logo.svg
@@ -0,0 +1,18 @@
+<svg width="200" height="200" viewBox="0 0 200 200" fill="#30272E" xmlns="http://www.w3.org/2000/svg">
+ <style>
+ svg {
+ fill: #30272E;
+ }
+ @media (prefers-color-scheme: dark) {
+ svg {
+ fill: #fff;
+ }
+ }
+ </style>
+ <path d="M142.044 93.0227C158.203 93.0227 171.303 79.81 171.303 63.5113C171.303 47.2127 158.203 34 142.044 34C125.885 34 112.785 47.2127 112.785 63.5113C112.785 79.81 125.885 93.0227 142.044 93.0227Z" />
+ <path d="M28 63.5113C28 79.7508 40.9938 93.0227 57.0737 93.0227V34C40.9938 34 28 47.1894 28 63.5113Z" />
+ <path d="M70.3924 63.5113C70.3924 79.7508 83.3862 93.0227 99.4661 93.0227V34C83.4675 34 70.3924 47.1894 70.3924 63.5113Z" />
+ <path d="M142.044 165.975C158.203 165.975 171.303 152.762 171.303 136.463C171.303 120.165 158.203 106.952 142.044 106.952C125.885 106.952 112.785 120.165 112.785 136.463C112.785 152.762 125.885 165.975 142.044 165.975Z" />
+ <path d="M70.3924 136.414C70.3924 152.671 83.3862 165.958 99.4661 165.958V106.952C83.4674 106.952 70.3924 120.156 70.3924 136.414Z" />
+ <path d="M28 136.414C28 152.754 40.9938 165.958 57.0737 165.958V106.952C40.9938 106.952 28 120.156 28 136.414Z" />
+</svg>