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
4 changes: 2 additions & 2 deletions docker/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ services:
networks:
- cloud
deploy:
mode: global
replicas: 1
<<: *x-update-config
placement:
constraints:
Expand All @@ -63,7 +63,7 @@ services:
deploy:
<<: *x-update-config
mode: replicated
replicas: 6
replicas: 5
placement:
max_replicas_per_node: 2
constraints:
Expand Down
4 changes: 2 additions & 2 deletions docker/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
networks:
- cloud
deploy:
mode: global
replicas: 1
<<: *x-update-config
placement:
constraints:
Expand All @@ -64,7 +64,7 @@ services:
deploy:
<<: *x-update-config
mode: replicated
replicas: 6
replicas: 5
placement:
max_replicas_per_node: 2
constraints:
Expand Down
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
2 changes: 1 addition & 1 deletion src/routes/blog/author/sara-kaandorp/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ role: Design lead
bio: Leading Appwrite's product and visual design teams.
avatar: /images/avatars/sara.png
twitter: https://twitter.com/sara_k_48
github: https://github.com/sarakaandorp
github: https://github.com/sara-k-48
linkedin: https://www.linkedin.com/in/sara-k-78468a116/
---
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
Loading