Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix seo #108

Merged
merged 11 commits into from
Sep 28, 2023
1 change: 1 addition & 0 deletions src/lib/utils/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { AuthorData } from '$markdoc/layouts/Author.svelte';
import type { PostsData } from '$markdoc/layouts/Post.svelte';

export const DEFAULT_HOST = 'https://website-appwrite.vercel.app';
export const DEFAULT_DESCRIPTION = 'Appwrite is an open-source platform for building applications at any scale, using your preferred programming languages and tools.';
export function buildOpenGraphImage(title: string, description: string): string {
return `https://og.appwrite.global/image.png?title=${encodeURIComponent(
title
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Products from '$lib/animations/Products/Products.svelte';
import ProductsMobile from '$lib/animations/Products/ProductsMobile.svelte';
import Tooltip from '$lib/components/Tooltip.svelte';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { isMobileNavOpen } from '$lib/layouts/Main.svelte';

const platforms: Array<{
Expand Down Expand Up @@ -65,7 +65,7 @@
];

const title = 'Appwrite - Build like a team of hundreds';
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = `${DEFAULT_HOST}/images/open-graph/website.png`;
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/assets/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script lang="ts">
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { Main } from '$lib/layouts';
import { TITLE_SUFFIX } from '$routes/titles';
import FooterNav from '../../lib/components/FooterNav.svelte';
import MainFooter from '../../lib/components/MainFooter.svelte';

const title = 'Assets' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/blog/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import { Main } from '$lib/layouts';
import { MainFooter, FooterNav, Article } from '$lib/components';
import { TITLE_SUFFIX } from '$routes/titles.js';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';

export let data;

const featured = data.posts.find((post) => post.featured);

const title = 'Blog' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/blog.png';
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/community/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import PreFooter from '$lib/components/PreFooter.svelte';
import { Carousel } from '$lib/components';
import { TITLE_SUFFIX } from '$routes/titles';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import FloatingHeads from '$lib/components/FloatingHeads.svelte';

const title = 'Community' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/company/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import MainFooter from '$lib/components/MainFooter.svelte';
import FooterNav from '$lib/components/FooterNav.svelte';
import { TITLE_SUFFIX } from '$routes/titles';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';

const title = 'Company' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/contact-us/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { Main } from '$lib/layouts';
import { TITLE_SUFFIX } from '$routes/titles';
import FooterNav from '../../lib/components/FooterNav.svelte';
Expand Down Expand Up @@ -35,7 +35,7 @@
}

const title = 'Contact us' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down
8 changes: 4 additions & 4 deletions src/routes/cookies/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script lang="ts">
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { Main } from '$lib/layouts';
import { TITLE_SUFFIX } from '$routes/titles';
import FooterNav from '../../lib/components/FooterNav.svelte';
import MainFooter from '../../lib/components/MainFooter.svelte';

const title = 'Cookies' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down Expand Up @@ -196,7 +196,7 @@
<section id="">
<p>
We use in our site
<a href="https://appwrite.io/" target="_blank">https://appwrite.io/</a> ("<b>Site</b
<a href="https://appwrite.io/" target="_blank">Appwrite (https://appwrite.io/)</a> ("<b>Site</b
>") cookies and similar files or technologies to automatically collect and store
information about your computer, device, and Site usage, in order to improve their
performance and enhance your user experience. We use the general term "<b>cookies</b>"
Expand All @@ -215,7 +215,7 @@
In this Cookies Policy, we use the term Appwrite (and "we", "us" and "our") to refer
to Appwrite Code Ltd. Our Privacy Policy is available at
<a href="https://appwrite.io/policy/privacy" target="_blank"
>https://appwrite.io/policy/privacy</a
>Appwrite Privacy Policy (https://appwrite.io/policy/privacy)</a
>.
</p>
<section class="u-flex u-flex-vertical u-gap-8" id="whatIsCookie">
Expand Down
4 changes: 2 additions & 2 deletions src/routes/docs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import Docs from '$lib/layouts/Docs.svelte';
import MainFooter from '../../lib/components/MainFooter.svelte';
import Sidebar from './Sidebar.svelte';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { TITLE_SUFFIX } from '$routes/titles';

const title = 'Docs' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/docs.png';
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: article
title: Permissions
title: Database Permissions
description: Enhance data security and access control with Appwrite Database Permissions. Learn how to set permissions and access rules for your database collections
---

Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/products/storage/permissions/+page.markdoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: article
title: Permissions
title: Storage Permissions
description: Enhance data security and control with Appwrite Storage Permissions. Learn how to set access rules, permissions, and restrictions for your stored files.
---

Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/angular/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,5 @@ export class AppComponent {
{% /section %}

{% section #step-6 step=6 title="All set" %}
Run your project with `ng serve --port 3000` and open [http://localhost:3000](http://localhost:3000) in your browser.
Run your project with `ng serve --port 3000` and open [Localhost on Port 3000](http://localhost:3000) in your browser.
{% /section %}
2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/nextjs/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default LoginPage;
{% /section %}

{% section #step-6 step=6 title="All set" %}
Run your project with `npm run dev` and open [http://localhost:3000](http://localhost:3000) in your browser.
Run your project with `npm run dev` and open [Localhost on Port 3000](http://localhost:3000) in your browser.

Don't forget to add some CSS to suit your style.
{% /section %}
2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/nuxt/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@ const logout = async () => {
{% /section %}

{% section #step-6 step=6 title="Checkout what you've built" %}
Run your project with `npm run dev -- --open --port 3000` and open [http://localhost:3000](http://localhost:3000) in your browser.
Run your project with `npm run dev -- --open --port 3000` and open [Localhost on Port 3000](http://localhost:3000) in your browser.
{% /section %}
2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/react/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ export default App;
{% /section %}

{% section #step-6 step=6 title="All set" %}
Run your project with `npm run dev -- --open --port 3000` and open [http://localhost:3000](http://localhost:3000) in your browser.
Run your project with `npm run dev -- --open --port 3000` and open [Localhost on Port 3000](http://localhost:3000) in your browser.
{% /section %}
2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/sveltekit/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Create a new file `src/routes/index.svelte` and add the following code to it.
{% /section %}

{% section #step-6 step=6 title="All set" %}
Run your project with `npm run dev -- --open --port 3000` and open [http://localhost:3000](http://localhost:3000) in your browser.
Run your project with `npm run dev -- --open --port 3000` and open [Localhost on Port 3000](http://localhost:3000) in your browser.
{% /section %}


2 changes: 1 addition & 1 deletion src/routes/docs/quick-starts/vue/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ const logout = async () => {
{% /section %}

{% section #step-6 step=6 title="All set" %}
Run your project with `npm run dev -- --open --port 3000` and open [http://localhost:3000](http://localhost:3000) in your browser.
Run your project with `npm run dev -- --open --port 3000` and open [Localhost on Port 3000](http://localhost:3000) in your browser.
{% /section %}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
} from '$lib/utils/references';
import type { LayoutContext } from '$markdoc/layouts/Article.svelte';
import { Fence, Heading } from '$markdoc/nodes/_Module.svelte';
import { DOCS_TITLE_SUFFIX } from '$routes/titles.js';
import { API_REFERENCE_TITLE_SUFFIX } from '$routes/titles.js';
import { getContext, onMount, setContext } from 'svelte';
import { writable } from 'svelte/store';

Expand Down Expand Up @@ -66,7 +66,7 @@
$: platform = $page.params.platform as Platform;
$: platformType = platform.startsWith('client-') ? 'CLIENT' : 'SERVER';
$: serviceName = serviceMap[data.service?.name];
$: title = serviceName + DOCS_TITLE_SUFFIX;
$: title = serviceName + API_REFERENCE_TITLE_SUFFIX;
$: description = data.service?.description;
$: ogImage = DEFAULT_HOST + '/images/open-graph/docs.png';
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/docs/tutorials/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import { MainFooter } from '$lib/components';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { DOCS_TITLE_SUFFIX } from '$routes/titles';

const title = 'Tutorials' + DOCS_TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/docs.png';
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/heroes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import { FooterNav, MainFooter } from '$lib/components';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { Main } from '$lib/layouts';
import { TITLE_SUFFIX } from '$routes/titles';

const title = 'Heroes' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/pricing/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script lang="ts">
import { FooterNav, MainFooter, PreFooter } from '$lib/components';
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';

import { Main } from '$lib/layouts';
import { TITLE_SUFFIX } from '$routes/titles';
import ComparePlans from './compare-plans.svelte';
import Faq from './faq.svelte';

const title = 'Pricing' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down
29 changes: 17 additions & 12 deletions src/routes/privacy/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import { DEFAULT_HOST } from '$lib/utils/metadata';
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
import { Main } from '$lib/layouts';
import { TITLE_SUFFIX } from '$routes/titles';

import FooterNav from '$lib/components/FooterNav.svelte';
import MainFooter from '$lib/components/MainFooter.svelte';

const title = 'Privacy' + TITLE_SUFFIX;
const description = '';
const description = DEFAULT_DESCRIPTION;
const ogImage = DEFAULT_HOST + '/images/open-graph/website.png';
</script>

Expand Down Expand Up @@ -311,8 +311,10 @@
<td class="aw-info-table-col">
For more information, please read our cookies policy <a
href="https://appwrite.io/policy/cookies"
target="_blank">https://appwrite.io/policy/cookies</a
target="_blank"
>
Appwrite Cookies Policy (https://appwrite.io/policy/cookies)
</a>
</td>
</tr>
<tr class="aw-info-table-col-row">
Expand Down Expand Up @@ -1231,18 +1233,21 @@
href="https://marketingplatform.google.com/about/analytics/terms/us/"
target="_blank"
>
https://marketingplatform.google.com/about/analytics/terms/us/</a
Google Analytics Terms of Service
(https://marketingplatform.google.com/about/analytics/terms/us/)</a
>, and the Google Privacy Policy, available at
<a href="https://www.google.com/policies/privacy/" target="_blank">
https://www.google.com/policies/privacy/</a
Google Privacy Policy (https://www.google.com/policies/privacy/)</a
>. You may learn more about how Google collects and processes data specifically in
connection with Google Analytics at
<a href="https://www.google.com/policies/privacy/partners/" target="_blank">
https://www.google.com/policies/privacy/partners/</a
Google Privacy Policy for Partners
(https://www.google.com/policies/privacy/partners/)</a
>. You may prevent your data from being used by Google Analytics by downloading and
installing the Google Analytics Opt-out Browser Add-on, available at
<a href="https://tools.google.com/dlpage/gaoptout/" target="_blank">
https://tools.google.com/dlpage/gaoptout/</a
Google Analytics Opt-out Browser Add-on
(https://tools.google.com/dlpage/gaoptout/)</a
>.
</li>
<li>
Expand All @@ -1251,7 +1256,7 @@
activity. For more information on the privacy practices of Orbit, please visit the Orbit
Privacy & Terms web page:
<a href="https://orbit.love/privacy-policy/" target="_blank"
>https://orbit.love/privacy-policy/</a
>Orbit Privacy Policy (https://orbit.love/privacy-policy/)</a
>.
</li>
<li>
Expand All @@ -1260,9 +1265,9 @@
diagnose, fix, and optimize the performance of the Website. Sentry's ability to use and
share information collected by Sentry is regulated by their terms of service, available
at
<a href="https://sentry.io/terms/" target="_blank">https://sentry.io/terms/</a>, and
<a href="https://sentry.io/terms/" target="_blank">Sentry Terms of Service (https://sentry.io/terms/)</a>, and
their Privacy Policy available at
<a href="https://sentry.io/privacy/" target="_blank">https://sentry.io/privacy/</a>.
<a href="https://sentry.io/privacy/" target="_blank">Sentry Privacy Policy (https://sentry.io/privacy/)</a>.
</li>
<li>
<span class="aw-u-color-text-primary">Mixpanel </span>
Expand All @@ -1272,11 +1277,11 @@
the Website and our products. Mixpanel’s ability to use and share information about your
visits is restricted by the Terms of Service, available at
<a href="https://mixpanel.com/legal/terms-of-use" target="_blank"
>https://mixpanel.com/legal/terms-of-use</a
>Mixpanel Terms of Use (https://mixpanel.com/legal/terms-of-use)</a
>
and the Mixpanel Privacy Policy, available at
<a href="https://mixpanel.com/legal/privacy-policy" target="_blank"
>https://mixpanel.com/legal/privacy-policy</a
>Mixpanel Privacy Policy (https://mixpanel.com/legal/privacy-policy)</a
>.
</li>
<li>
Expand Down
Loading