Skip to content

Commit

Permalink
fix(seo): added meta keywords
Browse files Browse the repository at this point in the history
updated title/description
added new canonical domains
  • Loading branch information
technikhil314 committed Oct 6, 2024
1 parent 4c91e4d commit 52b41e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin'

const BASE_URL = 'https://diffviewer.vercel.app'
const DESCRIPTION =
'A privacy first diff viewer that is secure, easy, simple and for any text type'
'A tool that helps you compare any two text blocks without sending any of your data to our servers'
const domainAliases = [
'https://diffchecker.vercel.app/',
'https://textdiff.vercel.app/',
'https://differencer.vercel.app/',
'https://diffie.vercel.app/',
'https://differencefinder.vercel.app/',
'https://differentiator.vercel.app/',
'https://text-differentiator.vercel.app/',
]
const canonicalLinks = domainAliases.map((x) => ({ rel: 'canonical', href: x }))
export default {
ssr: false,
head: {
title: `Diff viewer - ${DESCRIPTION}`,
title: `${DESCRIPTION} | Diff Viewer`,
script: [
{
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4467877923505914',
Expand All @@ -24,6 +26,11 @@ export default {
],
meta: [
{ charset: 'utf-8' },
{
name: 'keywords',
content:
'compare text, difference, diff view, diff viewer, hamming distance, difference, data privacy, differentiate, differentiator, text differentiator',
},
{ name: 'color-scheme', content: 'dark light' },
{
name: 'viewport',
Expand Down
2 changes: 1 addition & 1 deletion pages/v2/diff.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default Vue.extend({
},
head() {
return {
title: 'Diff Viewer - Diff view',
title: 'Diff view | Diff Viewer',
}
},
computed: {
Expand Down

0 comments on commit 52b41e1

Please sign in to comment.